Skip to content

Commit

Permalink
chore(cd): attempt to fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
nirga committed Mar 15, 2024
1 parent beec5b8 commit b6f08f8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,24 @@ jobs:
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://github-actions[bot]:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Create Version
run: npx lerna version --no-private --conventional-commits --yes
env:
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Set Current Version
run: |
CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
body_path: "CHANGELOG.md"
tag_name: ${{ env.CURRENT_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: "NPM Identity"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- name: Publish
run: npx lerna publish --no-private from-git --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit b6f08f8

Please sign in to comment.