mirror of
https://github.com/primer/css.git
synced 2025-01-08 15:33:53 +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:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
- '!dependabot/**'
|
- '!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:
|
jobs:
|
||||||
release:
|
release:
|
||||||
if: ${{ github.repository == 'primer/css' }}
|
if: ${{ github.repository == 'primer/css' }}
|
||||||
@ -37,7 +50,7 @@ jobs:
|
|||||||
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
|
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
|
||||||
|
|
||||||
- name: Create .npmrc
|
- name: Create .npmrc
|
||||||
if: steps.changesets.outputs.published != 'true'
|
if: steps.changesets.outputs.published == 'false'
|
||||||
run: |
|
run: |
|
||||||
cat << EOF > "$HOME/.npmrc"
|
cat << EOF > "$HOME/.npmrc"
|
||||||
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||||
@ -46,16 +59,16 @@ jobs:
|
|||||||
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
|
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
|
||||||
|
|
||||||
- name: Publish release candidate
|
- name: Publish release candidate
|
||||||
if: steps.changesets.outputs.published != 'true'
|
if: steps.changesets.outputs.published == 'false'
|
||||||
run: |
|
run: |
|
||||||
version=$(jq -r .version package.json)
|
version=$(jq -r .version package.json)
|
||||||
echo "$( jq ".version = \"$(echo $version)-rc.$(echo $GITHUB_SHA)\"" package.json )" > package.json
|
echo "$( jq ".version = \"$(echo $version)-rc.$(echo $GITHUB_SHA)\"" package.json )" > package.json
|
||||||
yarn publish -tag next
|
yarn publish --tag next
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Output release candidate number
|
- name: Output release candidate number
|
||||||
if: steps.changesets.outputs.published != 'true'
|
if: steps.changesets.outputs.published == 'false'
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v3
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
|
2
.github/workflows/release_canary.yml
vendored
2
.github/workflows/release_canary.yml
vendored
@ -15,6 +15,8 @@ on:
|
|||||||
- 'lib/**'
|
- 'lib/**'
|
||||||
- 'script/**'
|
- 'script/**'
|
||||||
- 'static/**'
|
- 'static/**'
|
||||||
|
- 'next.config.js'
|
||||||
|
- 'now.json'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-canary:
|
release-canary:
|
||||||
|
Loading…
Reference in New Issue
Block a user