Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan authored Aug 16, 2021
1 parent 7b92c3a commit 4aadee5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ name: Release
on:
push:
branches:
- main
- 'main'
jobs:
release:
name: Release
name: Final
if: ${{ github.repository == 'primer/primitives' }}

runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
uses: actions/checkout@v2
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@master
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 14.x

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

0 comments on commit 4aadee5

Please sign in to comment.