-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (101 loc) · 3.94 KB
/
publish.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
# eslint-config
- run: npm i --ignore-scripts
working-directory: npm/packages/eslint-config
- run: npm run build
working-directory: npm/packages/eslint-config
- if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance --tag beta
working-directory: npm/packages/eslint-config/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance
working-directory: npm/packages/eslint-config/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# library-build
- run: npm i --ignore-scripts
working-directory: npm/packages/library-build
- run: npm run build
working-directory: npm/packages/library-build
- if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance --tag beta
working-directory: npm/packages/library-build/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance
working-directory: npm/packages/library-build/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# utils
- run: npm i --ignore-scripts
working-directory: npm/packages/utils
- run: npm run build
working-directory: npm/packages/utils
- if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance --tag beta
working-directory: npm/packages/utils/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance
working-directory: npm/packages/utils/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# autosuggest
- run: npm i --ignore-scripts
working-directory: npm/packages/autosuggest
- run: npm run build
working-directory: npm/packages/autosuggest
- if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance --tag beta
working-directory: npm/packages/autosuggest/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance
working-directory: npm/packages/autosuggest/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# file-upload
- run: npm i --ignore-scripts
working-directory: npm/packages/file-upload
- run: npm run build
working-directory: npm/packages/file-upload
- if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance --tag beta
working-directory: npm/packages/file-upload/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'beta')
continue-on-error: true
run: npm publish --provenance
working-directory: npm/packages/file-upload/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}