Foundation Simulator #5
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: covector preview | |
on: [pull_request] | |
jobs: | |
covector: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # required for use of git history | |
- uses: actions/setup-node@v4 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
- uses: volta-cli/action@v4 | |
- name: Install Node.js dependencies | |
run: npm ci | |
- name: git config | |
run: | | |
git config --global user.name "${{ github.event.pusher.name }}" | |
git config --global user.email "${{ github.event.pusher.email }}" | |
- name: covector status | |
uses: jbolda/covector/packages/action@covector-v0 | |
id: covector-status | |
with: | |
command: "status" | |
- name: covector preview | |
uses: jbolda/covector/packages/action@covector-v0 | |
id: covector | |
if: ${{ steps.covector-status.outputs.status != 'No changes.' }} | |
env: | |
NODE_AUTH_TOKEN: $ {{ secrets.NPM_TOKEN }} | |
with: | |
token: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN }} | |
command: "preview" | |
identifier: "branch" | |
previewVersion: "sha" |