Skip to content

v5.5.0

v5.5.0 #33

Workflow file for this run

name: build
on:
release:
types: [created]
jobs:
build:
environment: automated-release
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ vars.BRANCH_NAME }}
- name: Add config details
run: |
git config --global user.name ${{secrets.NAME}}
git config --global user.email ${{secrets.EMAIL}}
- name: Move release to draft
run: gh release edit $TAG_NAME --draft=true
env:
TAG_NAME: ${{ github.event.release.tag_name }}
- name: Run npm install, build and test
run: |
npm i
npm run test
npm run lint
- run: zip -r lib.zip . -x '.*' 'node_modules/*' 'src/*' 'spec/*'
- name: Upload production artifacts
run: |
gh release upload $TAG_NAME "lib.zip#build"
gh release edit $TAG_NAME --draft=false
env:
TAG_NAME: ${{ github.event.release.tag_name }}