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:
parent
fe13c43f40
commit
33253f661d
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -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 }}
|
||||
|
@ -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
|
||||
|
@ -61,7 +61,7 @@
|
||||
"release": true
|
||||
},
|
||||
"npm": {
|
||||
"publish": true
|
||||
"publish": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user