Release #67
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: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: [beta] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Setup Git | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "twittwer@users.noreply.github.com" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Beta Release | |
if: ${{ github.ref == 'refs/heads/beta' }} | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx nx run compodoc:release:beta | |
- name: Release | |
if: ${{ github.ref == 'refs/heads/main' }} | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx nx run compodoc:release:remote |