Skip to content

Commit

Permalink
fixed execa version
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalraja committed Jan 5, 2022
1 parent 8b87da2 commit ebbadbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- "backend/**"
tags:
- 'v**-server'

jobs:
build:
name: Create Backend Release
Expand Down Expand Up @@ -46,14 +46,14 @@ jobs:
with:
node-version: 14
- name: Install npm deps
run: npm install execa
run: npm install execa@5.1.1
- name: Create Backend Release
uses: actions/github-script@v4
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
script: |
const fs = require('fs').promises;
const execa = require('execa');
const execa = require('execa');
const { repo: { owner, repo }, sha } = context;
const releaseName = process.env.GITHUB_REF.split('/').pop();
const { stdout } = await execa('git', ['tag', '-l', "--format=%(contents:subject)", releaseName]);
Expand All @@ -72,5 +72,5 @@ jobs:
release_id: release.data.id,
name: file,
data: await fs.readFile(`./build/${file}`)
});
});
}

0 comments on commit ebbadbc

Please sign in to comment.