This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (46 loc) · 1.55 KB
/
release.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Release
on:
push:
branches:
- master
env:
BIGQUERY_TABLE: jarvis-dev-268314.deployment_analytics.deployment_events
permissions:
contents: "write"
id-token: "write"
pull-requests: "write"
jobs:
release-please:
name: Prepare Release notes
runs-on: ubuntu-latest
outputs:
released: ${{ steps.release-please.outputs.release_created }}
pr_number: ${{ steps.echo-pr.outputs.pr_number }}
steps:
- id: release-please
uses: GoogleCloudPlatform/release-please-action@v3
with:
release-type: node
package-name: indykite-sdk-web
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
- uses: actions/checkout@v3
if: ${{ steps.release-please.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release-please.outputs.release_created }}
- run: npm ci
if: ${{ steps.release-please.outputs.release_created }}
- name: "Build the dist package"
run: npm run-script build
if: ${{ steps.release-please.outputs.release_created }}
# - name: "Verify es support of dist package"
# run: npm run-script check-es
# if: ${{ steps.release-please.outputs.release_created }}
- name: "Publish the package"
if: ${{ steps.release-please.outputs.release_created }}
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}