try canary release with dry run
This commit is contained in:
parent
e0d226ae8d
commit
682f3a9015
3 changed files with 974 additions and 14 deletions
53
.github/workflows/canary.yaml
vendored
Normal file
53
.github/workflows/canary.yaml
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
name: Canary
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
# Restricts to:
|
||||
# 1) the base repository
|
||||
# 2) NOT the default branch ("main")
|
||||
# 3) NOT "ci skip" in commit message
|
||||
# 4) NOT "skip ci" in commit message
|
||||
if: |
|
||||
github.repository == 'reuters-graphics/graphics-components' &&
|
||||
endsWith(github.event.base_ref, github.event.repository.default_branch) != true &&
|
||||
contains(github.event.head_commit.message, 'ci skip') != true &&
|
||||
contains(github.event.head_commit.message, 'skip ci') != true
|
||||
steps:
|
||||
- id: checkout
|
||||
name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- id: prepare
|
||||
name: Prepare repository
|
||||
run: git fetch --unshallow --tags
|
||||
|
||||
- id: setup-node
|
||||
name: Setup Node.JS
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: https://registry.npmjs.org
|
||||
scope: '@reuters-graphics'
|
||||
|
||||
- id: cache
|
||||
name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: yarn-deps-${{ hashFiles('yarn.lock') }}
|
||||
restore-keys: |
|
||||
yarn-deps-${{ hashFiles('yarn.lock') }}
|
||||
|
||||
- id: release
|
||||
name: Create Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: |
|
||||
yarn install --frozen-lockfile
|
||||
yarn build:package
|
||||
npx auto canary --dry-run
|
||||
|
|
@ -57,6 +57,7 @@
|
|||
"@types/react-syntax-highlighter": "^15.5.7",
|
||||
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
||||
"@typescript-eslint/parser": "^5.59.0",
|
||||
"auto": "^11.0.0",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"babel-loader": "^9.1.2",
|
||||
"change-case": "^4.1.2",
|
||||
|
|
|
|||
Loading…
Reference in a new issue