chore: add example title for feature-request.yaml #65
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 Packages | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
jobs: | |
publish-core-library: | |
environment: CI | |
runs-on: ubuntu-latest | |
if: "github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, 'release-please--branches--main--components--cardano-connect-with-wallet-core')" | |
defaults: | |
run: | |
working-directory: ./core | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 🫡 Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: '18.12.0' | |
registry-url: 'https://registry.npmjs.org/' | |
- name: 📥 Install dependencies | |
run: npm ci | |
- name: 📦 Bundle package | |
run: npm run build | |
- name: 🚀 Publish packages on npmjs | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_SECRET }} | |
publish-react-library: | |
environment: CI | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'release-please--branches--main--components--cardano-connect-with-wallet') && !contains(github.event.head_commit.message, 'cardano-connect-with-wallet-core')" | |
defaults: | |
run: | |
working-directory: ./react | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 🫡 Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: '18.12.0' | |
registry-url: 'https://registry.npmjs.org/' | |
- name: 📥 Install dependencies | |
run: npm ci | |
- name: 🧵 Install rollup | |
run: npm i -g rollup | |
- name: 📦 Bundle package | |
run: npm run rollup | |
- name: 🚀 Publish packages on npmjs | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_SECRET }} |