Skip to content

Commit 9383ef1

Browse files
update actions
1 parent c00528e commit 9383ef1

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed

.github/workflows/publish.yaml

+26-10
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,36 @@ jobs:
1111

1212
steps:
1313
- name: Checkout source
14-
uses: actions/[email protected]
14+
uses: actions/checkout@v3
15+
16+
- name: Restore cache
17+
uses: actions/cache@v3
18+
with:
19+
path: |
20+
~/.npm
21+
key: |
22+
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23+
restore-keys: |
24+
${{ runner.OS }}-node-
25+
${{ runner.OS }}-
1526
16-
- name: Install Node.js 14
17-
uses: actions/setup-node@v2.4.1
27+
- name: Install Node.js 16
28+
uses: actions/setup-node@v3
1829
with:
19-
node-version: 14
30+
node-version: 16
2031
registry-url: https://npm.pkg.github.com/
2132
scope: "@GitLiveApp"
2233

23-
- run: echo "registry=https://npm.pkg.github.com/@GitLiveApp" >> .npmrc
34+
- name: Install dependencies
35+
run: npm install
36+
37+
- name: Build
38+
run: npm run build
39+
40+
- name: Create .npmrc file
41+
run: echo "registry=https://npm.pkg.github.com/@GitLiveApp" >> .npmrc
2442

25-
- name: Publish
26-
run: |
27-
npm ci
28-
npm publish
43+
- name: Publish to Github packages
44+
run: npm publish
2945
env:
30-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
46+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/pull_request.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111

1212
steps:
1313
- name: Checkout source
14-
uses: actions/checkout@v2.4.0
14+
uses: actions/checkout@v3
1515

1616
- name: Restore cache
17-
uses: actions/cache@v2.1.6
17+
uses: actions/cache@v3
1818
with:
1919
path: |
2020
~/.npm
@@ -24,16 +24,16 @@ jobs:
2424
${{ runner.OS }}-node-
2525
${{ runner.OS }}-
2626
27-
- name: Install Node.js 14
28-
uses: actions/setup-node@v2.4.1
27+
- name: Install Node.js 16
28+
uses: actions/setup-node@v3
2929
with:
30-
node-version: 14
30+
node-version: 16
3131

3232
- name: Install dependencies
3333
run: npm install
3434

3535
- name: Install Java 15
36-
uses: actions/setup-java@v2.1.0
36+
uses: actions/setup-java@v3
3737
with:
3838
distribution: 'zulu'
3939
java-version: '15'

0 commit comments

Comments
 (0)