Publish npm Package #26
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 npm Package | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
publish-gpr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
package_json_file: package.json | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
registry-url: "https://registry.npmjs.org" | |
cache: "pnpm" | |
- name: 📦️ Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: 🏗️ Build | |
run: | | |
pnpm build | |
- name: 🚀️ Publish to NPM | |
run: pnpm publish --no-git-checks --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |