forked from dawidd6/action-download-artifact
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.1 KB
/
ci.yaml
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
40
41
42
43
44
45
46
47
48
49
name: CI
on:
push:
branches:
- master
jobs:
init:
name: init
runs-on: ubuntu-20.04
outputs:
skip: ${{ steps.ci-skip-step.outputs.ci-skip }}
skip-not: ${{ steps.ci-skip-step.outputs.ci-skip-not }}
steps:
- uses: actions/checkout@v3
- id: ci-skip-step
uses: mstachniuk/ci-skip@v1
release:
name: Release
if: ${{ needs.init.outputs.skip == 'false'}}
needs: init
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: master
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install deps
run: yarn install
- name: Build
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_USER: 'qiwibot'
GIT_COMMITTER_NAME: 'qiwibot'
GIT_COMMITTER_EMAIL: '[email protected]'
PUSH_MAJOR_TAG: true
run: npm_config_yes=true npx zx-semrel