Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: version. The next release version (without prefix v)
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.RPP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- uses: actions/setup-node@v4
with:
node-version: "20"
check-latest: true
cache: npm
- run: npm ci
- name: Bump the package version
run: |
mv package.json /tmp/
jq '.version = "${{ github.event.inputs.version }}"' /tmp/package.json | tee package.json
npm i --package-lock-only
- uses: yykamei/actions-git-push@main
with:
commit-message: Bump to ${{ github.event.inputs.version }}
- uses: yykamei/actions-release-actions@main
with:
tag: v${{ github.event.inputs.version }}
apply: true