Skip to content

Commit d9aee22

Browse files
committed
Disable npm publish step in publish action
1 parent 4040baf commit d9aee22

File tree

1 file changed

+38
-29
lines changed

1 file changed

+38
-29
lines changed

.github/workflows/publish.yml

Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,51 @@ name: Publish
22
# When a new Github Release is created, publish to NPM
33
on:
44
release:
5-
types: [published]
5+
types: [published, edited]
66

77
jobs:
8-
publish:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout Package
12-
uses: actions/checkout@v2
13-
with:
14-
ref: ${{ github.event.release.tag_name }}
15-
- name: Setup Node environment
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: 16
19-
registry-url: https://registry.npmjs.org/
20-
- name: NPM Install
21-
run: npm install
22-
- name: NPM run build
23-
run: npm run build
24-
- name: Get npm tag name
25-
id: npm_tag
26-
run: |
27-
npm_publish_tag=$(.github/script/get-npm-tag.js)
28-
echo "Received NPM publish tag:" $npm_publish_tag
29-
echo ::set-output name=npm_tag::$npm_publish_tag
30-
- name: Publish to NPM with tag
31-
run: npm publish --tag ${{ steps.npm_tag.outputs.npm_tag }}
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
8+
# publish:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - name: Checkout Package
12+
# uses: actions/checkout@v2
13+
# with:
14+
# ref: ${{ github.event.release.tag_name }}
15+
# - name: Setup Node environment
16+
# uses: actions/setup-node@v1
17+
# with:
18+
# node-version: 16
19+
# registry-url: https://registry.npmjs.org/
20+
# - name: NPM Install
21+
# run: npm install
22+
# - name: NPM run build
23+
# run: npm run build
24+
# - name: Get npm tag name
25+
# id: npm_tag
26+
# run: |
27+
# npm_publish_tag=$(.github/script/get-npm-tag.js)
28+
# echo "Received NPM publish tag:" $npm_publish_tag
29+
# echo ::set-output name=npm_tag::$npm_publish_tag
30+
# - name: Publish to NPM with tag
31+
# run: npm publish --tag ${{ steps.npm_tag.outputs.npm_tag }}
32+
# env:
33+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3434
deploy_chime_prod_demo:
35-
needs: publish
35+
# needs: publish
3636
name: Prod - Chime and ChimeSDKMeetings Client - Deploy the Serverless Meeting Demos
3737
runs-on: ubuntu-latest
3838
strategy:
3939
matrix:
40-
name: [ ChimeProd, ChimeSDKMeetingsProdIAD, ChimeSDKMeetingsProdPDX, ChimeSDKMeetingsProdFRA, ChimeSDKMeetingsProdSIN, ChimeSDKMeetingsIAD_ChimeSDKMediaPipelinesProdIAD, Chime_ChimeSDKMediaPipelinesProdIAD ]
40+
name:
41+
[
42+
ChimeProd,
43+
ChimeSDKMeetingsProdIAD,
44+
ChimeSDKMeetingsProdPDX,
45+
ChimeSDKMeetingsProdFRA,
46+
ChimeSDKMeetingsProdSIN,
47+
ChimeSDKMeetingsIAD_ChimeSDKMediaPipelinesProdIAD,
48+
Chime_ChimeSDKMediaPipelinesProdIAD,
49+
]
4150
env:
4251
AWS_DEFAULT_REGION: us-east-1
4352
AWS_DEFAULT_OUTPUT: text

0 commit comments

Comments
 (0)