-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (34 loc) · 951 Bytes
/
build.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
on:
pull_request:
types: [ closed ]
name: Build Angular
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*]
steps:
- uses: actions/checkout@v1
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install and npm run build
run: |
npm i
npm run build:prod
cd dist
mv ../.npmrc ngx-leaflet-sidebar
tar -czf release.tgz ngx-leaflet-sidebar/
cd ngx-leaflet-sidebar
npm publish --access public
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Push Build to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "dist/release.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
tag: "1.0.7"