mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
25 lines
592 B
YAML
25 lines
592 B
YAML
name: Node.js Package
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
publish-npm:
|
|
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 install
|
|
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
|
npm run build
|
|
npm publish
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}
|
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|