Skip to content

Commit 88d30ae

Browse files
committed
chore: multiple changes
1 parent c46befc commit 88d30ae

7 files changed

Lines changed: 76 additions & 605 deletions

File tree

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x]
16+
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: npm install, build, and test
24+
run: |
25+
npm install -g @angular/cli@17.3.17
26+
npm run build
27+
28+
publish:
29+
needs: build
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v1
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: 14
36+
registry-url: https://registry.npmjs.org/
37+
- name: npm publish
38+
run: |
39+
npm install -g @angular/cli@17.3.17
40+
npm run build
41+
cd dist/imagekit-angular
42+
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
43+
npm publish
44+
env:
45+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)