Skip to content

Commit a743ff1

Browse files
committed
Publish to npm via GitHub Actions
Fixes #22
1 parent 626e7c3 commit a743ff1

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/build.yml

+15
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,18 @@ jobs:
3535
env:
3636
VERSION: ${{ github.event.release.tag_name }}
3737
GH_TOKEN: ${{ github.token }}
38+
publish:
39+
if: github.event_name == 'release'
40+
permissions:
41+
id-token: write
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-node@v4
46+
with:
47+
node-version: 22.x
48+
registry-url: "https://registry.npmjs.org"
49+
- run: npm clean-install
50+
- run: npm publish --provenance --access public
51+
env:
52+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "age-encryption",
3-
"version": "0.2.0",
3+
"version": "0.2.0-rc.0",
44
"main": "dist/index.js",
55
"files": [
66
"dist/"

0 commit comments

Comments
 (0)