Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

fix: npm publish workflow #1079

Merged
merged 3 commits into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: package
path: "./target/npm/artifacts/capi*.tgz"
path: "./target/npm/capi-*.tgz"
- uses: octokit/request-action@v2.x
if: startsWith(github.ref, 'refs/tags/')
with:
Expand All @@ -34,3 +34,14 @@ jobs:
inputs: '${{ format(''{{ "repo": "{0}", "run_id": "{1}" }}'', github.repository, github.run_id) }}'
env:
GITHUB_TOKEN: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}
- name: Report failure
if: ${{ failure() }}
run: >
gh issue create
-a tjjfvi
-a harrysolovay
-l failure
-t 'npm publish failure: ${{steps.get_tag_version.outputs.tag_version}}'
-b "https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
env:
GH_TOKEN: ${{ github.token }}