Workflow file for this run
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: Publish package to GitHub Package Registry | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
Publish: | |
name: Publish to GitHub Package Registry | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js v18 with GitHub Package Registry | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
registry-url: https://registry.yarnpkg.com/ | |
- name: Install Dependencies | |
run: yarn --immutable | |
- name: Build package | |
run: yarn build | |
- name: Publish to GitHub | |
run: | | |
yarn config set npmAuthToken ${NODE_AUTH_TOKEN} | |
yarn config set npmPublishRegistry "https://npm.pkg.github.com" | |
yarn npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |