From 5f667c16b9f94808434493c2f8cf37cdc588bf91 Mon Sep 17 00:00:00 2001 From: Evgeny Alaev Date: Wed, 16 Oct 2024 18:35:34 +0300 Subject: [PATCH] CI fix 14 --- .../{bump-version.yml => github-release.yml} | 16 ++++++++++++---- package.json | 3 --- 2 files changed, 12 insertions(+), 7 deletions(-) rename .github/workflows/{bump-version.yml => github-release.yml} (86%) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/github-release.yml similarity index 86% rename from .github/workflows/bump-version.yml rename to .github/workflows/github-release.yml index 1656fca..cff89b1 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/github-release.yml @@ -1,4 +1,4 @@ -name: Bump path version +name: Release on Github on: # push: @@ -6,7 +6,7 @@ on: pull_request: jobs: - bump-version: + github-release: runs-on: ubuntu-latest permissions: contents: write @@ -70,5 +70,13 @@ jobs: body: ${{ env.COMMIT_NAME }} draft: false prerelease: false - - name: 'Success notify' - run: echo "Version bumped to '$TAG_NEW_VERSION' and pushed to remote repository" + # - name: 'Success notify' + # run: echo "Version bumped to '$TAG_NEW_VERSION' and pushed to remote repository" + - name: Install Packages + run: npm ci + - name: Build + run: npm run build + - name: Publish + run: npm publish --tag "$TAG_NEW_VERSION" + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 8b30588..679ca5b 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,5 @@ "npm": ">= 9", "yarn": "Please use npm instead of yarn to install dependencies", "pnpm": "Please use npm instead of pnpm to install dependencies" - }, - "publishConfig": { - "registry": "https://npm.pkg.github.com" } }