-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.14 KB
/
package.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
40
41
42
43
44
45
name: Typescript Package CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
workflow_dispatch:
inputs:
beta_release:
description: Create beta release
required: true
type: boolean
jobs:
optimize_ci:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check_skip.outputs.skip }}
steps:
- name: Optimize CI
id: check_skip
uses: withgraphite/graphite-ci-action@main
with:
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
typescript:
needs: [optimize_ci]
if: needs.optimize_ci.outputs.skip == 'false'
uses: skyleague/node-standards/.github/workflows/reusable-typescript.yml@main
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
release:
needs: [typescript,optimize_ci]
if: needs.optimize_ci.outputs.skip == 'false'
uses: skyleague/node-standards/.github/workflows/reusable-release.yml@main
with:
build_artifact_name: ${{ needs.typescript.outputs.artifact-name }}
beta_release: ${{ inputs.beta_release || false }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}