publish-create-catonaut #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-create-catonaut | |
on: | |
workflow_run: | |
workflows: | |
- test-create-catonaut | |
branches: [main] | |
types: | |
- completed | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
registry-url: 'https://registry.npmjs.org' | |
- name: Publish to npm | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}' | |
additional-test: | |
runs-on: ubuntu-latest | |
needs: publish | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Making sure our published package actually works | |
run: npx create-catonaut testApp |