From 3b0b37d6ba882b9dd386c4b0d656ab56fb01d4b9 Mon Sep 17 00:00:00 2001 From: Alex Good Date: Wed, 27 Sep 2023 21:33:40 +0100 Subject: [PATCH] Use yarn not npm in release action --- .github/workflows/release.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a269341..316725a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,10 +10,11 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v3 with: - node-version: '20.x' + node-version: 20.x' registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm publish + # Defaults to the user or organization that owns the workflow file + scope: '@octocat' + - run: yarn + - run: yarn npm publish // for Yarn version 1, use `yarn publish` instead env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} -