1
0
mirror of https://github.com/kremalicious/gatsby-redirect-from.git synced 2024-12-22 09:13:20 +01:00

add npm publish job

This commit is contained in:
Matthias Kretschmann 2021-02-01 00:18:54 +01:00
parent fe13c43f40
commit 33253f661d
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 17 additions and 3 deletions

View File

@ -27,3 +27,19 @@ jobs:
- run: npm ci
- run: npm test
- run: npm run build
publish:
needs: test
if: success() && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -86,8 +86,6 @@ npm run build
# publishing to npm & GitHub releases
# uses https://github.com/webpro/release-it
npm run release
npm run release minor
npm run release major
```
## Changelog

View File

@ -61,7 +61,7 @@
"release": true
},
"npm": {
"publish": true
"publish": false
}
}
}