Skip to content

Commit 9bc31d5

Browse files
authored
Update to latest actions/artifact NPM package (#195)
* Use latest actions/artifact NPM package + misc updates * Use node 18 + caching in CI * Run npm release * Use node 16 for CI + devcontainer
1 parent d2278a1 commit 9bc31d5

File tree

9 files changed

+402
-740
lines changed

9 files changed

+402
-740
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "@actions/download-artifact",
5+
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-16"
6+
}

.github/workflows/check-dist.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626

27-
- name: Set Node.js 12.x
28-
uses: actions/setup-node@v1
27+
- name: Setup Node 16
28+
uses: actions/setup-node@v3
2929
with:
30-
node-version: 12.x
30+
node-version: 16.x
31+
cache: 'npm'
3132

3233
- name: Install dependencies
3334
run: npm ci
@@ -45,7 +46,7 @@ jobs:
4546
id: diff
4647

4748
# If index.js was different than expected, upload the expected version as an artifact
48-
- uses: actions/upload-artifact@v2
49+
- uses: actions/upload-artifact@v3
4950
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
5051
with:
5152
name: dist

.github/workflows/licensed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
name: Check licenses
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- run: npm ci
1818
- name: Install licensed
1919
run: |

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ jobs:
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2525

26-
- name: Set Node.js 12.x
27-
uses: actions/setup-node@v1
26+
# using node 16 since that is what the latest version of the runner ships with
27+
- name: Setup Node 16
28+
uses: actions/setup-node@v3
2829
with:
29-
node-version: 12.x
30+
node-version: 16.x
31+
cache: 'npm'
3032

3133
- name: npm install
3234
run: npm install

.licenses/npm/@actions/artifact.dep.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ See [action.yml](action.yml)
2121
Basic (download to the current working directory):
2222
```yaml
2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525

2626
- uses: actions/download-artifact@v3
2727
with:
@@ -34,7 +34,7 @@ steps:
3434
Download to a specific directory:
3535
```yaml
3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v3
3838

3939
- uses: actions/download-artifact@v3
4040
with:
@@ -93,7 +93,7 @@ Example, if there are two artifacts `Artifact-A` and `Artifact-B`, and the direc
9393
Download all artifacts to a specific directory
9494
```yaml
9595
steps:
96-
- uses: actions/checkout@v2
96+
- uses: actions/checkout@v3
9797
9898
- uses: actions/download-artifact@v3
9999
with:
@@ -107,7 +107,7 @@ steps:
107107
Download all artifacts to the current working directory
108108
```yaml
109109
steps:
110-
- uses: actions/checkout@v2
110+
- uses: actions/checkout@v3
111111

112112
- uses: actions/download-artifact@v3
113113

@@ -121,7 +121,7 @@ The `download-path` step output contains information regarding where the artifac
121121

122122
```yaml
123123
steps:
124-
- uses: actions/checkout@v2
124+
- uses: actions/checkout@v3
125125
126126
- uses: actions/download-artifact@v3
127127
id: download

0 commit comments

Comments
 (0)