1.22.2 #248
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
name: Release on Tag | |
on: | |
push: | |
tags: | |
- '0.*' | |
- '1.*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Get Version | |
shell: bash | |
id: get-version | |
run: echo "version=$(node ./.github/workflows/get-version.js) >> $GITHUB_OUTPUT" | |
- name: Reconfigure git to use HTTP authentication | |
run: > | |
git config --global url."https://github.com/".insteadOf | |
ssh://[email protected]/ | |
- name: Install dependencies and run webpack | |
run: | | |
npm ci | |
npm run build:production | |
- name: Create installable system zip file | |
run: cd dist && zip -r ../ironsworn.zip * | |
- name: Create release | |
id: create_versioned_release | |
uses: ncipollo/release-action@v1 | |
with: | |
name: ${{ steps.get-version.outputs.version }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
artifacts: './system/system.json,./ironsworn.zip' |