diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 719696e..a6558cc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,12 @@ jobs: run: yarn - name: Build run: yarn build + - name: Setup .yarnrc.yml + run: | + yarn config set npmAuthToken $NPM_AUTH_TOKEN + yarn config set npmAlwaysAuth true + env: + NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Publish env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.yarnrc.yml b/.yarnrc.yml index 494040a..edf5b78 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,5 +1,3 @@ nodeLinker: node-modules -npmAuthToken: $NPM_AUTH_TOKEN -npmAlwaysAuth: true -npmRegistryServer: https://registry.npmjs.org/ + yarnPath: .yarn/releases/yarn-3.6.1.cjs