File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
push :
6
6
branches : [ main ]
7
+ tags : [ 'v*' ]
7
8
pull_request :
8
9
9
10
jobs :
10
11
build :
11
12
runs-on : ubuntu-latest
12
13
strategy :
13
14
matrix :
14
- node-version : [18.x, 20.x]
15
+ node-version : [18.x, 20.x, 22.x ]
15
16
steps :
16
17
- uses : actions/checkout@v4
17
18
- name : Use Node.js ${{ matrix.node-version }}
37
38
run : exit 1
38
39
39
40
publish-npm :
40
- if : ${{ github.event_name == 'push' && github. ref == 'refs/heads/main' && github.actor == 'release-please[bot]'}}
41
+ if : startsWith( github.ref, 'refs/tags/')
41
42
needs : build
42
43
environment :
43
44
name : production_feed
46
47
- uses : actions/checkout@v4
47
48
- uses : actions/setup-node@v4
48
49
with :
49
- node-version : 20
50
+ node-version : 22
50
51
registry-url : https://registry.npmjs.org/
51
- - run : |
52
- git config --global user.name '${GITHUB_ACTOR}'
53
- git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
54
- env:
55
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56
- GITHUB_ACTOR: ${{ secrets.GIT_USERNAME }}
57
52
- run : npm ci
58
53
- run : npm run build
59
54
- run : npm publish --access public
You can’t perform that action at this time.
0 commit comments