Skip to content

Publish on NPM

Publish on NPM #25

Workflow file for this run

name: Publish on NPM
on:
workflow_dispatch:
jobs:
publish-to-npm:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- run: yarn install --immutable
- run: yarn version check
- run: yarn version apply
- run: |
git config --global user.name '${{ vars.GITHUB_ACTOR }}'
git config --global user.email '${{ vars.GITHUB_ACTOR }}@users.noreply.github.com'
git commit -am "build(package): bump versions"
git push
- run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
yarn run publish --y