Skip to content

0.52.5

0.52.5 #250

Workflow file for this run

name: Publish on tag
on:
push:
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: npm install, build and test
run: |
npm ci
npm run build --if-present
npm audit --audit-level=moderate --production
npm test
- name: setup git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub"
- name: npm publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: cdn upload
run: aws s3 cp ./dist/bundle.js s3://${AWS_CDN_BUCKET}/sdk.min.js
env:
AWS_CDN_BUCKET: ${{ secrets.AWS_CDN_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets. AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true