build: fix prerelease tagging #76
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: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: [beta] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
env: | |
NX_SKIP_NX_CACHE: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
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 |