fix(ci): setup yarn with corepack

This commit is contained in:
Elian Doran 2024-12-12 18:23:43 +02:00
parent b1be69d686
commit 478b98112e
No known key found for this signature in database

View File

@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 22 node-version: 22
registry-url: https://npm.pkg.github.com/ registry-url: https://npm.pkg.github.com/
- run: yarn install - run: yarn install
- run: yarn build - run: yarn push
- run: yarn publish
env: env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
permissions: permissions: