forked from bartofzo/NativeTrees
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 779 Bytes
/
publish.yml
File metadata and controls
28 lines (26 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 }}"}'