laconic-registry-cli/.gitea/workflows/publish.yaml
Prathamesh Musale aff309eaad
All checks were successful
Publish npm package to gitea / npm_publish (18.x) (release) Successful in 1m14s
Use dist-tag beta for publishing (#65)
Part of [Create a public laconicd testnet](https://www.notion.so/Incentivized-testnet-for-laconicd-53e4c32aa0c741baa062b15d85c1e359?pvs=21)

Reviewed-on: #65
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-06-19 05:36:29 +00:00

39 lines
1.2 KiB
YAML

name: Publish npm package to gitea
on:
release:
types: [published]
jobs:
npm_publish:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download yarn
run: |
curl -fsSL -o /usr/local/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js
chmod +x /usr/local/bin/yarn
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- name: Run yarn build
run: |
yarn 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.CICD_PUBLISH_TOKEN }}"
- name: npm publish
run: |
# Use beta dist-tag
# See https://docs.npmjs.com/cli/v10/commands/npm-dist-tag and https://docs.npmjs.com/adding-dist-tags-to-packages
npm publish --tag beta