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

Commit

Permalink
chore: publish using npm_publish_automation (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi authored Oct 21, 2022
1 parent ee4e1c0 commit 3f95852
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@ jobs:
registry-url: "https://registry.npmjs.org"
- name: Build NPM Package
run: deno task dnt ${{steps.get_tag_version.outputs.TAG_VERSION}}
- name: Publish NPM Package
- run: npm pack
working-directory: "./target/npm"
- uses: actions/upload-artifact@v3
with:
name: package
path: "./target/npm/*.tgz"
- uses: octokit/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
route: POST /repos/paritytech/npm_publish_automation/actions/workflows/publish.yml/dispatches
ref: main
inputs: '${{ format(''{{ "repo": "{0}", "run_id": "{1}" }}'', github.repository, github.run_id) }}'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd target/npm && npm publish
GITHUB_TOKEN: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}

0 comments on commit 3f95852

Please sign in to comment.