From c10a35f07ee140266d1026ac5d3f786f11ee2d29 Mon Sep 17 00:00:00 2001 From: Daniel Kagan Date: Tue, 28 Jan 2025 17:12:17 +0200 Subject: [PATCH] release --- .github/workflows/pr.yml | 5 ----- .github/workflows/release.yml | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 099b796..e9af4e8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,9 +13,6 @@ jobs: - name: Install dependencies run: yarn install - # - name: Set registry - # run: npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN - - name: Build package run: | cd packages/repluggable @@ -45,8 +42,6 @@ jobs: run: | cd packages/repluggable echo PR package tag is [pr$PR_ID.$BUILD_NUMBER] - echo "aa2" - echo $(pwd) npm publish --tag "pr$PR_ID.$BUILD_NUMBER" env: NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d661649..fd390e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: yarnVersionArgs: description: 'Arguments for "yarn version"' required: true - default: '--patch' + default: 'patch' jobs: publish: @@ -29,11 +29,11 @@ jobs: env: GH_EMAIL: ${{secrets.GH_EMAIL}} GH_USER: ${{secrets.GH_USER}} - + - name: Bump version run: | git reset --hard - yarn version --no-git-tag-version ${{ github.event.inputs.yarnVersionArgs }} + yarn version ${{ github.event.inputs.yarnVersionArgs }} export NEW_RELEASE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') echo New Release Version is: [$NEW_RELEASE_VERSION] yarn build @@ -45,7 +45,7 @@ jobs: git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY" --tags env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - + - name: npm publish run: | npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN