forked from JaneaSystems/nodejs-mobile-cordova
-
-
Notifications
You must be signed in to change notification settings - Fork 8
32 lines (30 loc) · 850 Bytes
/
npm-publish.yml
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
29
30
31
32
---
name: npm publish
# yamllint disable-line rule:truthy
on:
workflow_run:
workflows:
- Node.js
branches:
- main
types:
- completed
jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
repository: okhiroyuki/composite-actions
path: ./.github/actions/composite-actions
- uses: ./.github/actions/composite-actions/setup-node
- name: build
run: npm run build
- uses: ./.github/actions/composite-actions/npm-publish
with:
npm-token: ${{ secrets.NPM_TOKEN }}