Skip to content

Commit 4aadee5

Browse files
authored
Update release.yml
1 parent 7b92c3a commit 4aadee5

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,25 @@ name: Release
22
on:
33
push:
44
branches:
5-
- main
5+
- 'main'
66
jobs:
77
release:
8-
name: Release
8+
name: Final
9+
if: ${{ github.repository == 'primer/primitives' }}
10+
911
runs-on: ubuntu-latest
1012
steps:
1113
- name: Checkout repository
12-
uses: actions/checkout@master
14+
uses: actions/checkout@v2
1315
with:
1416
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1517
fetch-depth: 0
18+
persist-credentials: false
1619

1720
- name: Set up Node.js
18-
uses: actions/setup-node@master
21+
uses: actions/setup-node@v2
1922
with:
20-
node-version: 12.x
23+
node-version: 14.x
2124

2225
- name: Install dependencies
2326
run: yarn
@@ -30,5 +33,5 @@ jobs:
3033
# This expects you to have a script called release which does a build for your packages and calls changeset publish
3134
publish: yarn release
3235
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.GPR_AUTH_TOKEN_SHARED }}
3437
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}

0 commit comments

Comments
 (0)