From 51e2f7e6f141ae561a44d8446cf3cdf98a098803 Mon Sep 17 00:00:00 2001 From: tiavina-mika Date: Mon, 29 Apr 2024 15:38:56 +0300 Subject: [PATCH] update yarn --- .github/workflows/release.yml | 26 ++++++++++---------------- .yarnrc.yml | 4 ++-- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d29283d..f17db03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,31 +1,25 @@ name: Publish Package to npmjs +run-name: ${{ github.actor }} publish to npm 🚀 + on: - push: - tags: - - "v*.*.*" -jobs: - # Then release to npm release: + types: [published] +jobs: + build: runs-on: ubuntu-latest permissions: contents: read id-token: write # Needed for https://docs.npmjs.com/generating-provenance-statements - strategy: - matrix: - node-version: [18] - steps: - - name: Checkout repo - uses: actions/checkout@v4 - # Set up .npmrc file to publish to npm. This also allows NODE_AUTH_TOKEN - # to work below. + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: - node-version: "18.x" - registry-url: "https://registry.npmjs.org" - + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' - run: yarn # for Yarn v1, use `yarn publish` instead - run: yarn npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml index 1eb34e5..c401ea2 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -2,6 +2,6 @@ nodeLinker: node-modules yarnPath: .yarn/releases/yarn-3.6.4.cjs -npmAuthToken: "${NPM_TOKEN}" +npmAuthToken: ${NPM_TOKEN} npmAlwaysAuth: true -npmRegistryServer: https://npm.pkg.github.com # URL for private registry \ No newline at end of file +# npmRegistryServer: https://npm.pkg.github.com # URL for private registry \ No newline at end of file