mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-01 04:12:58 +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:
|
||||
- 'v*'
|
||||
jobs:
|
||||
publish-github-registry:
|
||||
publish-package:
|
||||
name: Publish package
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: corepack enable
|
||||
- uses: actions/setup-node@v4
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: yarn install
|
||||
- run: yarn push
|
||||
- name: Set up yarn with corepack
|
||||
run: |
|
||||
corepack enable &&
|
||||
corepack install
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
- name: Publish package
|
||||
run: yarn push
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
Loading…
x
Reference in New Issue
Block a user