Merge pull request #588 from maxwroc/StateMapDisplay #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Drafter | |
on: | |
workflow_dispatch: | |
push: | |
# branches to consider in the event; optional, defaults to all | |
branches: | |
- master | |
# pull_request event is required only for autolabeler | |
# pull_request: | |
# # Only following types are handled by the action, but one can default to all as well | |
# types: [opened, reopened, synchronize] | |
jobs: | |
validate_release: | |
runs-on: macOS-latest | |
steps: | |
# build files | |
- name: Checkout files | |
uses: actions/checkout@v2 | |
- name: NodeJS setup | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org/ | |
- name: Installing dependencies | |
run: npm ci | |
- name: Build release | |
run: npm run release | |
- name: Test | |
run: npm run test | |
update_release_draft: | |
needs: validate_release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout files | |
uses: actions/checkout@v2 | |
- name: NodeJS setup | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org/ | |
- name: Installing dependencies | |
run: npm ci | |
- name: Build release | |
run: npm run release | |
- name: Create release draft | |
id: create_release | |
uses: release-drafter/release-drafter@v5 | |
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | |
with: | |
config-name: release-config.yml | |
disable-autolabeler: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload release assets | |
run: | | |
find ./dist -type f -exec gh release upload --clobber ${{ env.VERSION }} {} + | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ steps.create_release.outputs.tag_name }} | |
FILES: ./dist/* |