Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
futabooo committed Apr 5, 2024
1 parent f9e83d9 commit 6a2ef89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/actions/release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release
description: create a GitHub Release and upload artifacts

inputs:
github_token:
description: "GitHub token to request GitHub API"
required: true
tag:
description: "The tag name of the release"
required: true
Expand All @@ -18,12 +21,15 @@ runs:
node-version: 18

- name: Install dependencies
shell: bash
run: npm ci

- name: Build project
shell: bash
run: npm run build

- name: Zip artifacts
shell: bash
run: |
zip -r notoin-bar-colorize.zip dist/
Expand All @@ -32,4 +38,5 @@ runs:
with:
files: notoin-bar-colorize.zip
body_path: CHANGELOG.md
tag_name: ${{ inputs.tag }}
tag_name: ${{ inputs.tag }}
token: ${{ inputs.github_token }}
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ jobs:
uses: ./.github/actions/release
with:
tag: ${{ github.ref_name }}
github_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/tagpr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ jobs:
- uses: ./.github/actions/release
with:
tag: ${{ needs.tagpr.outputs.tag }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6a2ef89

Please sign in to comment.