Skip to content

npm publish

npm publish #100

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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 }}