0.3.0 #6
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: Publish | |
permissions: | |
contents: write | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn | |
- run: yarn build | |
- run: yarn version --no-git-tag-version --new-version ${{ github.event.release.name }} | |
- run: yarn publish --non-interactive | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: ${{ secrets.PRIVATE_REGISTRY }} | |
- run: yarn publish --non-interactive | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.PRIVATE_REGISTRY_TOKEN }} | |
- name: install example dependencies | |
working-directory: ./example | |
run: yarn | |
- name: build example site | |
working-directory: ./example | |
run: yarn build | |
env: | |
PUBLIC_URL: '/monaco-sql-languages' | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./example/build |