Skip to content

Commit

Permalink
release v0.0.8 & NPM Publish CI Provenance Config
Browse files Browse the repository at this point in the history
  • Loading branch information
tugrul committed Oct 6, 2024
1 parent c9133fe commit 005b390
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
name: Publish Package to npmjs
name: Publish Package to NPM
on:
release:
types: [published]
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build --if-present
- run: npm publish
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cryptian",
"version": "0.0.7",
"version": "0.0.8",
"description": "Crypto suite",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 005b390

Please # to comment.