From dc749e1324ea7d9f578602cb181a5a5db082e52e Mon Sep 17 00:00:00 2001 From: Filip Szczepanski Date: Thu, 6 Oct 2022 00:28:54 +0200 Subject: [PATCH] chore: adjust github action --- .github/workflows/release-package.yml | 17 ++++++----------- package.json | 2 +- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 4dcb5ee..e280488 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -3,20 +3,15 @@ on: release: types: [created] jobs: - build: + publish: runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - uses: actions/checkout@v3 - # Setup .npmrc file to publish to GitHub Packages - uses: actions/setup-node@v3 with: - node-version: '16.x' - - run: npm ci + node-version: 12 + - run: npm install - run: npm run build - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index fc3fb7f..f183754 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@szczepanski/aws-mfa-profile", - "version": "0.0.2", + "version": "0.0.3", "description": "Tool for creating AWS Profile with MFA", "main": "index.mjs", "bin": {