mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-03 22:30:51 +08:00
fix(ci): issue with wrong yarn version
This commit is contained in:
parent
0b385595da
commit
a033692965
17
.github/workflows/release-package.yml
vendored
17
.github/workflows/release-package.yml
vendored
@ -4,16 +4,23 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
jobs:
|
jobs:
|
||||||
publish-github-registry:
|
publish-package:
|
||||||
|
name: Publish package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: corepack enable
|
- name: Set up Node
|
||||||
- uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: yarn install
|
- name: Set up yarn with corepack
|
||||||
- run: yarn push
|
run: |
|
||||||
|
corepack enable &&
|
||||||
|
corepack install
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install --frozen-lockfile
|
||||||
|
- name: Publish package
|
||||||
|
run: yarn push
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
Loading…
x
Reference in New Issue
Block a user