Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKag committed Jan 28, 2025
1 parent 94b6288 commit c10a35f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
yarnVersionArgs:
description: 'Arguments for "yarn version"'
required: true
default: '--patch'
default: 'patch'

jobs:
publish:
Expand All @@ -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
Expand All @@ -45,7 +45,7 @@ jobs:
git push "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY" --tags
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: npm publish
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
Expand Down

0 comments on commit c10a35f

Please sign in to comment.