Skip to content

update version to 1.0.1 #2

update version to 1.0.1

update version to 1.0.1 #2

Workflow file for this run

name: NodeJS with Webpack
on:
push:
tags:
- 'v*'
jobs:
build_and_commit:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get tag version number
run: |
# 取得版本號碼
version=$(echo "${{ github.ref }}" | sed 's/refs\/tags\/v//')
echo "Tag version: $version"
- name: Install dependencies
run: yarn
- name: Build project
run: yarn build
- name: Commit build to output branch
run: |
git checkout -b output
git add docs/
git commit -m "update version to v$versiion"
git push origin output