Skip to content

Update README_CN.md #123

Update README_CN.md

Update README_CN.md #123

Workflow file for this run

name: npm-publish
on:
push:
branches:
- master
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Check if version has been updated
id: check
uses: EndBug/version-check@v1
with:
file-url: https://unpkg.com/react-activation/package.json
static-checking: localIsNew
- name: Log if version has been updated
if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'
- name: Set up Node.js
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@master
with:
node-version: 13.11.0
- name: Install Dependencies
if: steps.check.outputs.changed == 'true'
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Build
if: steps.check.outputs.changed == 'true'
run: 'sudo npm run build'
- name: Set up Git
if: steps.check.outputs.changed == 'true'
run: 'git config --global --add safe.directory /github/workspace'
- name: Publish
if: steps.check.outputs.changed == 'true'
uses: pascalgn/[email protected]
with:
commit_pattern: "^Release (\\S+)"
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}