Skip to content

Commit

Permalink
fix(build): release script
Browse files Browse the repository at this point in the history
  • Loading branch information
HQarroum committed Feb 7, 2024
1 parent d5ff6f2 commit eff7832
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ permissions:
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0
- name: Install dependencies
run: npm install
- name: Build all packages
Expand All @@ -25,7 +30,13 @@ jobs:
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
- name: Release packages
run: npx lerna publish --no-private --no-changelog --yes
run: |
NPM_CONFIG_PROVENANCE=true npx lerna publish --no-private --no-changelog --yes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Set release version
id: set-release-version
run: |
VERSION=$(cat lerna.json | jq .version -r)
echo RELEASE_VERSION="$VERSION" >> "$GITHUB_OUTPUT"

0 comments on commit eff7832

Please sign in to comment.