Skip to content

feat: SvgLayerUpdateにdurationフィールドを追加 #12

feat: SvgLayerUpdateにdurationフィールドを追加

feat: SvgLayerUpdateにdurationフィールドを追加 #12

Workflow file for this run

name: release
on:
pull_request:
types:
- closed
branches:
- main
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm ci
- name: Get current version
id: get_version
run: |
VERSION=$(npm version --json | jq -r .version)
echo "current_version=$VERSION" >> $GITHUB_OUTPUT
- name: Increment version
id: increment_version
run: |
git config user.name github-actions
git config user.email github-actions@github.com
NEW_VERSION=$(npm version patch --json)
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tags: true
- name: Build
run: npm run foxglove:dev
- name: Create .foxe file
run: |
npm run foxglove:package
- name: Create GitHub Release
id: create_release
run: |
gh release create ${{ steps.increment_version.outputs.new_version }} --notes "Release ${{ steps.increment_version.outputs.new_version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload .foxe file
run: |
gh release upload ${{ steps.increment_version.outputs.new_version }} ibisssl.foxglove-crane-visualizer-[0-9]*.[0-9]*.[0-9]*.foxe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}