chore(version): update to v0.4.1 (#49) #26
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
--- | |
# Publishing the package to the npm registry when the version number changes | |
# See https://github.com/marketplace/actions/npm-publish for more information | |
name: Publish Package to npmjs | |
on: | |
push: | |
branches: main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: 'moonrepo/setup-toolchain@v0' | |
with: | |
auto-install: true | |
- run: pnpm install --frozen-lockfile | |
- run: moon :build | |
- name: Publish | |
run: | | |
pnpm config set git-checks false | |
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} | |
pnpm publish --access public --no-git-checks -r | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |