-
-
Notifications
You must be signed in to change notification settings - Fork 85
36 lines (32 loc) · 996 Bytes
/
publish.yml
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
32
33
34
35
36
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@v3
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
NODE_OPTIONS: --openssl-legacy-provider
- name: rollingversions check
run: npx rollingversions publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: |
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
# npx rollingversions publish -d -g ${{ secrets.GITHUB_TOKEN }}
# npx rollingversions publish -g ${{ secrets.GITHUB_TOKEN }}