Fixes for cross-browser parity #1
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: Build OrigamiWand Releases | |
on: | |
push: | |
paths: | |
- '.github/workflows/*' | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install npm dependencies | |
run: npm install | |
# - name: Print all tags | |
# run: git tag | |
# - name: Print latest tag name | |
# run: git for-each-ref --count=1 --sort=-taggerdate --format '%(tag)' refs/tags | |
- name: Get latest git tag | |
id: get_latest_tag | |
run: echo "TAG_NAME=$(git tag)" >> $GITHUB_ENV | |
- name: Build OrigamiWand | |
run: PUBLIC_OW_VERSION="$TAG_NAME" PUBLIC_VERSION_TIMESTAMP=$(date +%s)000 PUBLIC_IS_DEV_VERSION=0 PUBLIC_DEBUG=0 npm run build | |
- name: Upload build folder | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OrigamiWand-build | |
path: build | |