forked from HubSpot/draft-convert
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 903 Bytes
/
ci.yaml
File metadata and controls
35 lines (28 loc) · 903 Bytes
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
name: ci
on:
workflow_dispatch: {}
push: {}
jobs:
test:
runs-on: ubuntu-latest
permissions:
packages: write # to be able to publish to the GitHub Package Registry
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: lts/*
registry-url: https://npm.pkg.github.com
- run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn test
- run: yarn lint
- run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}