1
1
mirror of https://github.com/primer/css.git synced 2025-01-07 23:11:42 +03:00

Fixing typo on workflow

This commit is contained in:
Jon Rohan 2021-03-29 12:07:44 -07:00
parent 13738a8fce
commit 9755777f7e
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB
2 changed files with 19 additions and 4 deletions

View File

@ -4,6 +4,19 @@ on:
branches:
- 'main'
- '!dependabot/**'
# Don't release when these paths change
# It's not necessary because we don't ship them and it creates noise
paths-ignore:
- '.changeset/**'
- '.github/**'
- '.storybook/**'
- 'docs/**'
- 'lib/**'
- 'script/**'
- 'static/**'
- 'next.config.js'
- 'now.json'
jobs:
release:
if: ${{ github.repository == 'primer/css' }}
@ -37,7 +50,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
- name: Create .npmrc
if: steps.changesets.outputs.published != 'true'
if: steps.changesets.outputs.published == 'false'
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
@ -46,16 +59,16 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
- name: Publish release candidate
if: steps.changesets.outputs.published != 'true'
if: steps.changesets.outputs.published == 'false'
run: |
version=$(jq -r .version package.json)
echo "$( jq ".version = \"$(echo $version)-rc.$(echo $GITHUB_SHA)\"" package.json )" > package.json
yarn publish -tag next
yarn publish --tag next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Output release candidate number
if: steps.changesets.outputs.published != 'true'
if: steps.changesets.outputs.published == 'false'
uses: actions/github-script@v3
with:
script: |

View File

@ -15,6 +15,8 @@ on:
- 'lib/**'
- 'script/**'
- 'static/**'
- 'next.config.js'
- 'now.json'
jobs:
release-canary: