Skip to content

npm publish

npm publish #110

Workflow file for this run

---
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 }}