Skip to content

release-complete

release-complete #3

Workflow file for this run

name: Publish
on:
repository_dispatch:
types: [ release-complete ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish
run: |
echo "//registry.visualpinball.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
cd ./Packages/NativeTrees
npm publish --registry=https://registry.visualpinball.org/
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
dispatch:
runs-on: ubuntu-latest
needs: [ publish ]
steps:
- uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GH_PAT }}
event-type: publish-complete
client-payload: '{"artifacts_run_id": "${{ github.run_id }}"}'