Skip to content

Commit

Permalink
feat: upgrade download-artifact action to 2.0.1 (projen#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Ben-Israel authored Aug 26, 2020
1 parent 9cd2c59 commit 1e56981
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
image: jsii/superchain
steps:
- name: Download build artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v2.0.1
with:
name: dist
- name: Release
Expand Down
40 changes: 12 additions & 28 deletions src/jsii-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ import { TypeScriptProject } from './typescript';
const DEFAULT_JSII_VERSION = '1.11.0';
const DEFAULT_JSII_IMAGE = 'jsii/superchain';

const DOWNLOAD_ARTIFACT_STEP = {
name: 'Download build artifacts',
uses: 'actions/download-artifact@v2.0.1',
with: {
name: 'dist',
},
};

// jsii/superchain has 10.20.1
// nvm has 10.17.0
// @types/node has 10.17.0
Expand Down Expand Up @@ -228,13 +236,7 @@ export class JsiiProject extends TypeScriptProject {
image: 'jsii/superchain',
},
'steps': [
{
name: 'Download build artifacts',
uses: 'actions/download-artifact@v1',
with: {
name: 'dist',
},
},
DOWNLOAD_ARTIFACT_STEP,
{
name: 'Release',
run: 'npx -p jsii-release jsii-release-npm',
Expand All @@ -261,13 +263,7 @@ export class JsiiProject extends TypeScriptProject {
image: 'jsii/superchain',
},
'steps': [
{
name: 'Download build artifacts',
uses: 'actions/download-artifact@v1',
with: {
name: 'dist',
},
},
DOWNLOAD_ARTIFACT_STEP,
{
name: 'Release',
run: 'npx -p jsii-release jsii-release-nuget',
Expand All @@ -293,13 +289,7 @@ export class JsiiProject extends TypeScriptProject {
image: 'jsii/superchain',
},
'steps': [
{
name: 'Download build artifacts',
uses: 'actions/download-artifact@v1',
with: {
name: 'dist',
},
},
DOWNLOAD_ARTIFACT_STEP,
{
name: 'Release',
run: 'npx -p jsii-release jsii-release-maven',
Expand Down Expand Up @@ -329,13 +319,7 @@ export class JsiiProject extends TypeScriptProject {
image: 'jsii/superchain',
},
'steps': [
{
name: 'Download build artifacts',
uses: 'actions/download-artifact@v1',
with: {
name: 'dist',
},
},
DOWNLOAD_ARTIFACT_STEP,
{
name: 'Release',
run: 'npx -p jsii-release jsii-release-pypi',
Expand Down

0 comments on commit 1e56981

Please sign in to comment.