forked from vega/ts-json-schema-generator
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) 路 920 Bytes
/
publish-auto.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
name: Publish Auto
on:
push:
branches-ignore:
# No canary deploys for branches opened by dependabot
- "dependabot/**"
jobs:
publish:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
name: Make a release and publish to NPM
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
cache: "yarn"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Node dependencies
run: yarn --frozen-lockfile
- name: Create release
run: npm run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}