chore: add publish engine actions #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update and Publish Docs | |
on: | |
push: | |
# branches: | |
# - 'release/[0-9]+.[0-9]+.[0-9]+-beta' | |
# paths: | |
# - 'packages/**' | |
jobs: | |
publish-engine: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm install && npm run setup | |
- run: | | |
npm run build | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
- run: npm run pub:prerelease | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Get version | |
id: get_version | |
run: echo "::set-output name=version::$(node -p "require('./docs/package.json').version")" |