Skip to content

Commit

Permalink
chore: adjust github action
Browse files Browse the repository at this point in the history
  • Loading branch information
filipszczepanski committed Oct 5, 2022
1 parent ae16af2 commit dc749e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit dc749e1

Please sign in to comment.