NPM Package Release #6
This file contains hidden or 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
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For 7447k,=o=o=/o*= see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | |
name: NPM Package Release | |
on: | |
workflow_dispatch: | |
jobs: | |
publish-npm: | |
# needs: [build, versioning] | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10.11.0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22.11.0 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies pnpm | |
run: pnpm install --frozen-lockfile | |
- name: Build packages | |
run: pnpm build | |
- run: pnpm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |