Skip to content

Commit

Permalink
release-script-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajpatel committed May 1, 2022
1 parent 1606bd2 commit 1c6b811
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,37 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm i -g yarn
- run: yarn install
- run: yarn build

publish-npm:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 14
registry-url: https://npm.pkg.github.com/
- run: npm publish
env:
Expand Down
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
!dist
.github
.husky
.vscode
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "list-repos",
"version": "0.8.0",
"version": "1.0.0",
"description": "List all the repos, their HEADs and clean status in the Current Directory or the Supplied Directory",
"main": "dist/index.cjs",
"type": "commonjs",
Expand Down

0 comments on commit 1c6b811

Please sign in to comment.