Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
feat: Add GitHub Packages and NPM publishing workflows
Browse files Browse the repository at this point in the history
This commit adds two new workflows for publishing packages to GitHub Packages and NPM. The GitHub Packages workflow uses the `GITHUB_TOKEN` secret, while the NPM workflow uses the `NPM_TOKEN` secret. Both workflows include steps to checkout code, setup Node.js, install dependencies with `npm ci`, and publish packages.
  • Loading branch information
benji-lewis committed Aug 6, 2023
1 parent b89b34c commit fe76b4c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ jobs:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit fe76b4c

Please sign in to comment.