From 8ce883d7dd5ee9a094771de80b859bc3e0a99cdc Mon Sep 17 00:00:00 2001 From: WarstekHUN Date: Wed, 2 Aug 2023 13:17:46 +0200 Subject: [PATCH] 1.0.1 --- .github/workflows/publish.yml | 11 ++++++----- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a2c68ac..89c3371 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,11 +2,14 @@ name: Publish on: release: - types: [created] + types: [published] jobs: publish: runs-on: ubuntu-latest + permissions: + contents: write + packages: write steps: - uses: actions/checkout@v3 - name: Setup .npmrc file to publish to npm @@ -15,11 +18,9 @@ jobs: node-version: '18.x' registry-url: 'https://registry.npmjs.org' - name: Install modules - run: npm install - - name: Build and generate coverage badges - run: npm run build + run: npm ci - name: Publish to npm - run: npm publish --access public + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Setup .npmrc file to publish to GitHub Packages diff --git a/package-lock.json b/package-lock.json index c8bf224..eb5d6af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "typescript-npm-package-template", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "typescript-npm-package-template", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "devDependencies": { "@types/jest": "^27.0.1", diff --git a/package.json b/package.json index 1ce1039..6cd6452 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "typescript-npm-package-template", - "version": "1.0.0", + "version": "1.0.1", "description": "Typescript NPM package template that is ready for NPM and Github Packages publish.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js",