Skip to content

Commit

Permalink
Publish to npm via GitHub Actions
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
FiloSottile committed Jan 6, 2025
1 parent 626e7c3 commit a743ff1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,18 @@ jobs:
env:
VERSION: ${{ github.event.release.tag_name }}
GH_TOKEN: ${{ github.token }}
publish:
if: github.event_name == 'release'
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
registry-url: "https://registry.npmjs.org"
- run: npm clean-install
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "age-encryption",
"version": "0.2.0",
"version": "0.2.0-rc.0",
"main": "dist/index.js",
"files": [
"dist/"
Expand Down

0 comments on commit a743ff1

Please sign in to comment.