File tree Expand file tree Collapse file tree 3 files changed +42
-17
lines changed Expand file tree Collapse file tree 3 files changed +42
-17
lines changed Original file line number Diff line number Diff line change 31
31
npm run mac-x64
32
32
npm run mac-arm64
33
33
- name : Publish NPM library
34
- run : npm publish
34
+ run : |
35
+ if ${{ contains(github.event.release.tag_name, '-RC') }}; then
36
+ echo "Publishing Release Candidate ${{ github.event.release.tag_name}} to NPM"
37
+ npm publish --tag next
38
+ else
39
+ echo "Publishing ${{ github.event.release.tag_name}} to NPM"
40
+ npm publish
41
+ fi
35
42
env :
36
43
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37
44
- uses : fnkr/github-action-ghr@v1
Original file line number Diff line number Diff line change 1
-
2
1
language: node_js
3
2
node_js:
4
- - "14.16 "
3
+ - "18.8.0 "
5
4
6
5
jobs:
7
6
include:
8
- - stage: npm release
9
- node_js: "14.16"
10
- script: echo "Deploying to npm ..."
7
+ - stage: NPM RC Release
8
+ if: tag == *-RC*
9
+ node_js: "18.8.0"
10
+ script: echo "Deploying RC to NPM..."
11
+ deploy:
12
+ provider: npm
13
+ email: $NPM_EMAIL
14
+ api_key: $NPM_API_KEY
15
+ tag: next
16
+ - stage: NPM Release
17
+ if: tag != *-RC*
18
+ node_js: "18.8.0"
19
+ script: echo "Deploying to NPM..."
11
20
deploy:
12
21
provider: npm
13
22
email: $NPM_EMAIL
Original file line number Diff line number Diff line change 1
-
2
1
language: node_js
3
2
node_js:
4
- - "14.16 "
3
+ - "18.8.0 "
5
4
6
5
jobs:
7
6
include:
8
- - stage: npm release
9
- node_js: "14.16"
10
- script:
11
- - echo "Installing dependencies ..."
12
- - npm i
13
- - echo "Building library ..."
7
+ - stage: NPM RC Release
8
+ if: tag == *-RC*
9
+ node_js: "18.8.0"
10
+ script:
11
+ - npm install
14
12
- npm run build
15
- - echo "Deploying to npm ..."
13
+ - echo "Deploying RC to NPM..."
14
+ deploy:
15
+ provider: npm
16
+ email: $NPM_EMAIL
17
+ api_key: $NPM_API_KEY
18
+ tag: next
19
+ - stage: NPM Release
20
+ if: tag != *-RC*
21
+ node_js: "18.8.0"
22
+ script:
23
+ - npm install
24
+ - npm run build
25
+ - echo "Deploying to NPM..."
16
26
deploy:
17
27
provider: npm
18
28
email: $NPM_EMAIL
19
29
api_key: $NPM_API_KEY
20
- skip_cleanup: true
21
30
on:
22
- tags: true
31
+ tags: true
You can’t perform that action at this time.
0 commit comments