-
Notifications
You must be signed in to change notification settings - Fork 24
55 lines (47 loc) · 1.43 KB
/
dev-releases-for-pr.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release Dev Build for PR
on:
pull_request:
types:
- opened
- synchronize
permissions:
contents: write
id-token: write
jobs:
release-dev-of-plugins:
if: false
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- name: 'Setup Tools'
uses: ./.github/actions/setup-tools
- name: "NPM Identity"
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc
npm whoami
- name: Version & Publish
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: |
npm whoami
npm version prerelease --no-git-tag-version -f --preid dev-$PR_NUMBER-$(date +%Y%m%dT%H%M%S)
npm publish --tag dev
working-directory: ./plugin
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
with:
path: ./plugin
- uses: mshick/add-pr-comment@v2
with:
message: |
Released dev build of Google Maps with dev version: ${{ steps.package-version.outputs.current-version }}