Skip to content

Commit 005b390

Browse files
committed
release v0.0.8 & NPM Publish CI Provenance Config
1 parent c9133fe commit 005b390

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/npm-publish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
name: Publish Package to npmjs
1+
name: Publish Package to NPM
22
on:
33
release:
4-
types: [published]
4+
types: [ published ]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
813
steps:
9-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1015
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@v4
1217
with:
13-
node-version: '16.x'
18+
node-version: '20.x'
1419
registry-url: 'https://registry.npmjs.org'
1520
- run: npm ci
1621
- run: npm run build --if-present
17-
- run: npm publish
22+
- run: npm publish --provenance --access public
1823
env:
1924
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cryptian",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "Crypto suite",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)