Fix publishing #46

Merged
telackey merged 4 commits from telackey/pub into main 2023-11-21 22:55:19 +00:00
Showing only changes of commit 7b6fe3382e - Show all commits

View File

@ -1,5 +1,8 @@
name: Publish npm package to gitea name: Publish npm package to gitea
on: on:
pull_request:
branches:
- '*'
release: release:
types: [published] types: [published]
jobs: jobs:
@ -7,16 +10,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [ 16.x ] node-version: [ 18.x ]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 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 }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn - run: yarn
- name: Run yarn build - name: Run yarn build
run: | run: |
@ -27,6 +35,6 @@ jobs:
- name: Authenticate to git.vdb.to registry - name: Authenticate to git.vdb.to registry
run: | run: |
npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}" npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}"
- name: npm publish #- name: npm publish
run: | # run: |
npm publish # npm publish