v2.0.0-beta.1 #10
Workflow file for this run
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
## | |
# Builds and publishes tags for releases. | |
# The release tag will be updated to a new commit that | |
# only contains the built code. | |
## | |
name: Release | |
# Manual or automatic release | |
on: | |
release: | |
types: [published, edited] | |
jobs: | |
build: | |
name: Build and Tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.release.tag_name }} | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
- name: Install deps and build | |
run: npm ci && npm run build | |
# Force push major and minor tags, e.g. v1, v1.0 | |
# See documentation: https://github.com/JasonEtco/build-and-tag-action | |
- uses: JasonEtco/build-and-tag-action@v2 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |