Merge pull request #23 from Brillionfi/feat/sdk-components #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NPM Publish alpha prerelease | |
on: | |
push: | |
branches: | |
- master | |
env: | |
NODE_VERSION: 20.12.2 | |
NODE_AUTH_TOKEN: ${{ secrets.NPNJS_ACCESS_TOKEN }} | |
jobs: | |
version-release-beta: | |
name: Publish alpha prerelease | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
registry-url: 'https://registry.npmjs.org/' | |
- name: Install Yarn | |
run: npm install -g yarn | |
- name: Install Dependencies | |
run: yarn | |
- name: Build Package | |
run: yarn build | |
# - name: Unit Tests | |
# run: yarn test | |
- name: npm version prerelease | |
run: npm version prerelease --no-git-tag-version --preid=${GITHUB_SHA::7} | |
- name: Publish to GitHub Packages | |
run: npm publish --tag alpha --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPNJS_ACCESS_TOKEN }} |