From 54be4fda1220b128d68cbf3ee67d4809f2c62851 Mon Sep 17 00:00:00 2001 From: Tomas Pilar Date: Thu, 11 Jan 2024 09:20:16 +0100 Subject: [PATCH] Revert changes in release action --- .github/workflows/npm-publish.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 9cf0f86..2fca323 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,8 +1,5 @@ name: Publish on Release -permissions: - contents: write - on: release: types: [created] @@ -16,25 +13,11 @@ jobs: environment: production steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - uses: actions/setup-node@v3 with: node-version: 16 registry-url: https://registry.npmjs.org/ - run: yarn install --immutable - - name: Bump package.json version - run: | - git config --global user.email "bot@github.com" - git config --global user.name "Github Action" - git tag --delete ${{github.ref_name}} - git push --delete origin ${{github.ref_name}} - git checkout -b tmp - yarn version --immediate `echo -n ${{github.ref_name}} | tr -d "v"` - git add . - git commit -m "${{github.ref_name}}" --no-verify - git push origin tmp:main - git push origin ${{github.ref_name}} - run: yarn npm publish --access public env: YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}