From 005b390f48e89770680c37bd2cada3bf05c2b871 Mon Sep 17 00:00:00 2001 From: Tugrul Topuz Date: Sun, 6 Oct 2024 03:39:20 +0300 Subject: [PATCH] release v0.0.8 & NPM Publish CI Provenance Config --- .github/workflows/npm-publish.yml | 17 +++++++++++------ package.json | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 81c6c45..d8e5ad0 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 }} \ No newline at end of file diff --git a/package.json b/package.json index 933f104..7c1eab6 100644 --- a/package.json +++ b/package.json @@ -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",