-
Notifications
You must be signed in to change notification settings - Fork 76
40 lines (40 loc) · 1.09 KB
/
deploy-latest.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
37
38
39
40
name: Deploy Latest
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-20.04
steps:
- uses: google-github-actions/[email protected]
id: release
with:
command: manifest
token: ${{ secrets.ADMIN_TOKEN }}
default-branch: main
extra-files: |
packages/calcite-components/readme.md
- name: Checkout Repository
if: ${{ steps.release.outputs.releases_created }}
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.ADMIN_TOKEN }}
ref: main
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
- name: Build Packages and Publish to NPM
if: ${{ steps.release.outputs.releases_created }}
run: |
npm install
npm run build
npm run publish:latest
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}