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:
parent
13738a8fce
commit
9755777f7e
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@ -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: |
|
||||
|
2
.github/workflows/release_canary.yml
vendored
2
.github/workflows/release_canary.yml
vendored
@ -15,6 +15,8 @@ on:
|
||||
- 'lib/**'
|
||||
- 'script/**'
|
||||
- 'static/**'
|
||||
- 'next.config.js'
|
||||
- 'now.json'
|
||||
|
||||
jobs:
|
||||
release-canary:
|
||||
|
Loading…
Reference in New Issue
Block a user