mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 10:48:05 +02:00
feat(v2): add automated canary releases (#3827)
* attempt to add automated canary releases * fix canary releases workflow
This commit is contained in:
parent
8217fb64c9
commit
28a83d73e3
2 changed files with 29 additions and 0 deletions
26
.github/workflows/canary-releases.yml
vendored
Normal file
26
.github/workflows/canary-releases.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Canary releases
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-canary:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [10.x]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: Installation
|
||||||
|
run: yarn
|
||||||
|
- name: Publish Canary release
|
||||||
|
run: |
|
||||||
|
yarn canary
|
||||||
|
env:
|
||||||
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
@ -32,6 +32,9 @@
|
||||||
"crowdin:upload:v2": "crowdin upload sources --config ./crowdin-v2.yaml",
|
"crowdin:upload:v2": "crowdin upload sources --config ./crowdin-v2.yaml",
|
||||||
"crowdin:uploadTranslations:v2": "crowdin upload translations --config ./crowdin-v2.yaml",
|
"crowdin:uploadTranslations:v2": "crowdin upload translations --config ./crowdin-v2.yaml",
|
||||||
"crowdin:download:v2": "crowdin download --config ./crowdin-v2.yaml",
|
"crowdin:download:v2": "crowdin download --config ./crowdin-v2.yaml",
|
||||||
|
"canary": "yarn canary:bumpVersion && yarn canary:publish",
|
||||||
|
"canary:bumpVersion": "yarn lerna version 2.0.0-alpha.`git rev-parse --short HEAD` --exact --no-push --yes",
|
||||||
|
"canary:publish": "yarn lerna publish from-package --dist-tag canary --yes",
|
||||||
"changelog": "lerna-changelog",
|
"changelog": "lerna-changelog",
|
||||||
"postinstall": "yarn lock:update && yarn build:packages",
|
"postinstall": "yarn lock:update && yarn build:packages",
|
||||||
"prettier": "prettier --config .prettierrc --write \"**/*.{js,ts}\"",
|
"prettier": "prettier --config .prettierrc --write \"**/*.{js,ts}\"",
|
||||||
|
|
Loading…
Add table
Reference in a new issue