-
-
Notifications
You must be signed in to change notification settings - Fork 117
28 lines (24 loc) · 736 Bytes
/
publish_npm.yml
File metadata and controls
28 lines (24 loc) · 736 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
name: '@nativescript/template-* -> npm'
on:
push:
branches: [ 'main' ]
env:
NPM_TAG: 'next'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Setup
run: npm install
- name: Publish All Templates
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: |
# run publish in every package, ignore failures (ie no publish required if the version is already published)
npm run prepare-templates
npx lerna exec --no-bail --stream --concurrency 1 -- "npm publish || true"