forked from jsillitoe/react-currency-input
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 706 Bytes
/
Copy pathpublish.yml
File metadata and controls
31 lines (27 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Deploy New Version
on:
repository_dispatch:
types: [rollingversions_publish_approved]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: npm install, build, test, publish
run: |
node --version
npm --version
npm ci
npm run build --if-present
env:
CI: true
- name: rollingversions check
run: npx rollingversions publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}