Skip to content

v7.0.13

v7.0.13 #44

Workflow file for this run

name: Publish Release
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- run: npm run build
- name: 'Release to NPM'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm run release
- name: 'Deploy to Edgio'
env:
EDGIO_DEPLOY_TOKEN: ${{secrets.XDN_DEPLOY_TOKEN}}
run: npm run edgio:deploy