-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (34 loc) · 1.02 KB
/
covector-preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: covector preview
on: [pull_request]
permissions:
id-token: write
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"
- run: npm config list
- uses: volta-cli/action@v4
- name: Install Node.js dependencies
run: npm ci
- 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"