docusaurus/.github/workflows/canary-release.yml
Joshua Chen eaab20cd1a
chore: remove Intl polyfills for Jest (#6364)
* chore: remove Intl polyfills for Jest

* Add node versions
2022-01-15 09:56:10 +08:00

42 lines
1.0 KiB
YAML

name: Canary Release
on:
push:
branches:
- main
paths:
- packages/**
jobs:
publish-canary:
name: Publish Canary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Needed to get the commit number with "git rev-list --count HEAD"
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: yarn
- name: Prepare git
run: |
git config --global user.name "Docusaurus Canary"
git config --global user.email "canary@docusaurus.io"
git fetch
git checkout main
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
cat .npmrc
echo "npm whoami"
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Installation
run: yarn
- name: Publish Canary release
run: |
yarn canary
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}