Skip to content

Commit

Permalink
Revert "Disable npm publish step in publish action" (#2897)
Browse files Browse the repository at this point in the history
This reverts commit a7f140d.
  • Loading branch information
xuesichao committed May 23, 2024
1 parent 7bd0863 commit c6e8690
Showing 1 changed file with 29 additions and 38 deletions.
67 changes: 29 additions & 38 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,42 @@ name: Publish
# When a new Github Release is created, publish to NPM
on:
release:
types: [published, edited]
types: [published]

jobs:
# publish:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Package
# uses: actions/checkout@v2
# with:
# ref: ${{ github.event.release.tag_name }}
# - name: Setup Node environment
# uses: actions/setup-node@v1
# with:
# node-version: 16
# registry-url: https://registry.npmjs.org/
# - name: NPM Install
# run: npm install
# - name: NPM run build
# run: npm run build
# - name: Get npm tag name
# id: npm_tag
# run: |
# npm_publish_tag=$(.github/script/get-npm-tag.js)
# echo "Received NPM publish tag:" $npm_publish_tag
# echo ::set-output name=npm_tag::$npm_publish_tag
# - name: Publish to NPM with tag
# run: npm publish --tag ${{ steps.npm_tag.outputs.npm_tag }}
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Package
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}
- name: Setup Node environment
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: NPM Install
run: npm install
- name: NPM run build
run: npm run build
- name: Get npm tag name
id: npm_tag
run: |
npm_publish_tag=$(.github/script/get-npm-tag.js)
echo "Received NPM publish tag:" $npm_publish_tag
echo ::set-output name=npm_tag::$npm_publish_tag
- name: Publish to NPM with tag
run: npm publish --tag ${{ steps.npm_tag.outputs.npm_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
deploy_chime_prod_demo:
# needs: publish
needs: publish
name: Prod - Chime and ChimeSDKMeetings Client - Deploy the Serverless Meeting Demos
runs-on: ubuntu-latest
strategy:
matrix:
name:
[
ChimeProd,
ChimeSDKMeetingsProdIAD,
ChimeSDKMeetingsProdPDX,
ChimeSDKMeetingsProdFRA,
ChimeSDKMeetingsProdSIN,
ChimeSDKMeetingsIAD_ChimeSDKMediaPipelinesProdIAD,
Chime_ChimeSDKMediaPipelinesProdIAD,
]
name: [ ChimeProd, ChimeSDKMeetingsProdIAD, ChimeSDKMeetingsProdPDX, ChimeSDKMeetingsProdFRA, ChimeSDKMeetingsProdSIN, ChimeSDKMeetingsIAD_ChimeSDKMediaPipelinesProdIAD, Chime_ChimeSDKMediaPipelinesProdIAD ]
env:
AWS_DEFAULT_REGION: us-east-1
AWS_DEFAULT_OUTPUT: text
Expand Down

0 comments on commit c6e8690

Please sign in to comment.