v0.42.2-laconic-0.1.4 #5
Workflow file for this run
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 npm package to gitea | |
on: | |
release: | |
types: [published] | |
jobs: | |
npm_publish: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 16.x ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
- name: Run npm build | |
run: | | |
npm run build | |
- name: Configure git.vdb.to npm registry | |
run: | | |
npm config set registry https://git.vdb.to/api/packages/cerc-io/npm/ | |
- name: Authenticate to git.vdb.to registry | |
run: | | |
npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}" | |
- name: npm publish | |
run: | | |
npm publish |