laconic-sdk/.gitea/workflows/publish.yaml
Thomas E Lackey 7b6fe3382e
Some checks failed
Publish npm package to gitea / npm_publish (18.x) (pull_request) Failing after 10s
Tests / sdk_tests (pull_request) Has been cancelled
Fix publishing
2023-11-21 16:43:48 -06:00

41 lines
1.1 KiB
YAML

name: Publish npm package to gitea
on:
pull_request:
branches:
- '*'
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 ~/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js
chmod +x ~/bin/yarn
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- 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.GITEA_PUBLISH_TOKEN }}"
#- name: npm publish
# run: |
# npm publish