v3.0.0-rc.0 #1
Workflow file for this run
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: Pre-release CD | |
on: | |
release: | |
types: [ prereleased ] | |
jobs: | |
publish: | |
name: 📡 Pre-release publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout code | |
uses: actions/checkout@v4 | |
- name: 🔃 Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
cache: npm | |
registry-url: 'https://registry.npmjs.org' | |
- name: 🔧 Install dependencies | |
run: npm install | |
- name: 🏗️ Build library | |
run: npm run build | |
- name: 📡 Publish release candidate to NPM | |
run: npm publish --tag next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |