fix: nodejs libs should not contain source maps, bump to v0.0.17 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish to npm | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
cache: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
~/.npm | |
node_modules | |
key: node-${{ hashFiles('**/package-lock.json') }}' | |
- run: npm ci | |
if: steps.cache.outputs.cache-hit != 'true' | |
push-to-npm: | |
runs-on: ubuntu-latest | |
needs: cache | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
~/.npm | |
node_modules | |
key: node-${{ hashFiles('**/package-lock.json') }}' | |
- run: npm ci | |
if: steps.cache.outputs.cache-hit != 'true' | |
- run: npm run build | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: ./dist/libs/stripe/package.json | |
check-version: false |