Skip to content

Commit 2569afb

Browse files
committed
chore: update OIDC release workflow
1 parent 39b2005 commit 2569afb

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 🏷️ Lerna Publish NPM Latest
1+
name: 🏷️ Release to NPM
22

33
on:
44
workflow_dispatch:
@@ -30,36 +30,24 @@ jobs:
3030
uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
33-
token: ${{ secrets.GITHUB_TOKEN }}
3433

3534
- if: ${{ github.event.pull_request.merged != true && contains('["ghiscoding"]', github.actor) != true }}
3635
name: Exit early when current actor is not allowed to push new release
3736
run: |
3837
echo "Error: Your GitHub username (${{ github.actor }}) is not on the allowed list of admins for this workflow"
3938
exit 1
4039
41-
- name: Set NodeJS
42-
uses: actions/setup-node@v4
43-
with:
44-
registry-url: 'https://registry.npmjs.org/'
45-
node-version: 24
46-
4740
- name: Install pnpm
4841
uses: pnpm/action-setup@v3
4942
with:
5043
version: 10
5144
run_install: false
5245

53-
- name: Get pnpm store directory
54-
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
55-
56-
- name: Setup pnpm cache
57-
uses: actions/cache@v4
46+
- name: Set NodeJS
47+
uses: actions/setup-node@v4
5848
with:
59-
path: ${{ env.STORE_PATH }}
60-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
61-
restore-keys: |
62-
${{ runner.os }}-pnpm-store-
49+
registry-url: 'https://registry.npmjs.org/'
50+
node-version: 24
6351

6452
- name: Run pnpm install dependencies
6553
run: pnpm install
@@ -73,19 +61,19 @@ jobs:
7361
if ${{inputs.dryrun == true && inputs.graduate != true}}
7462
then
7563
echo "LERNA_VERSION_TYPE=🧪 Dry-Run" >> $GITHUB_ENV
76-
echo "LERNA_VERSION_QUERY=pnpm exec lerna version --yes --dry-run" >> $GITHUB_ENV
64+
echo "LERNA_VERSION_QUERY=lerna version --yes --dry-run" >> $GITHUB_ENV
7765
elif ${{inputs.dryrun == true && inputs.graduate == true}}
7866
then
7967
echo "LERNA_VERSION_TYPE=🧪 Dry-Run w/Graduate" >> $GITHUB_ENV
80-
echo "LERNA_VERSION_QUERY=pnpm exec lerna version --yes --dry-run --conventional-graduate" >> $GITHUB_ENV
68+
echo "LERNA_VERSION_QUERY=lerna version --yes --dry-run --conventional-graduate" >> $GITHUB_ENV
8169
elif ${{inputs.dryrun != true && inputs.graduate == true}}
8270
then
8371
echo "LERNA_VERSION_TYPE=🚀 Prod Version w/Graduate" >> $GITHUB_ENV
84-
echo "LERNA_VERSION_QUERY=pnpm exec lerna version --yes --conventional-graduate" >> $GITHUB_ENV
72+
echo "LERNA_VERSION_QUERY=lerna version --yes --conventional-graduate" >> $GITHUB_ENV
8573
elif ${{inputs.dryrun != true && inputs.graduate != true}}
8674
then
8775
echo "LERNA_VERSION_TYPE=🚀 Prod Version" >> $GITHUB_ENV
88-
echo "LERNA_VERSION_QUERY=pnpm exec lerna version --yes" >> $GITHUB_ENV
76+
echo "LERNA_VERSION_QUERY=lerna version --yes" >> $GITHUB_ENV
8977
fi
9078
9179
- name: Final version query type - ${{ env.LERNA_VERSION_TYPE }}

0 commit comments

Comments
 (0)