-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.32 KB
/
pull_request.yaml
File metadata and controls
39 lines (37 loc) · 1.32 KB
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: Verify PR
on:
pull_request:
branches:
- master
jobs:
versionist:
name: Versionist
runs-on: ubuntu-latest
outputs: # (optional) Only if you want to use them in next jobs
version: ${{ steps.versionist.outputs.version }} # version: project's version after running versionist
updated: ${{ steps.versionist.outputs.updated }} # updated: true if the version has been updated
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
fetch-depth: 0 # We need all commits and tags
persist-credentials: false # Next step needs to use service account's token
- name: Run versionist
id: versionist # (optional) Only needed if using outputs
uses: bartversluijs/versionist-gh@master
with:
commit: false
build:
name: Build package
needs: [versionist] # If versionist fails, we don't have to try and build the package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm run lint:build
- run: npm run build