Skip to content

Commit

Permalink
fix: Download artifact after generatic the release folder
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Nov 30, 2020
1 parent 2c49bb2 commit 62f4150
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,16 @@ jobs:
with:
node-version: 12.x

- name: Download JS artifacts
- name: Generate NPM package and release
run: |
node scripts/make-npm-release.js
- name: Download JavaScript artifact
if: ${{ success() }}
uses: actions/download-artifact@master
with:
name: index.js
path: index.js

- name: Generate NPM package and release
run: |
node scripts/make-npm-release.js;
mv index.js _release/index.js;
path: _release/index.js

- name: Download linux artifacts
if: ${{ success() }}
Expand Down
2 changes: 1 addition & 1 deletion bin/Info.re
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let version = "0.5.16";
let version = "0.5.17";
let description = "query-json is a faster and simpler re-implementation of jq in Reason Native";

let repo = "https://github.com/davesnx/query-json";
Expand Down
2 changes: 1 addition & 1 deletion esy.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@davesnx/query-json",
"version": "0.5.16",
"version": "0.5.17",
"description": "faster and simpler re-implementation of jq in Reason Native",
"author": "davesnx <dsnxmoreno@gmail.com>",
"license": "MIT",
Expand Down
8 changes: 0 additions & 8 deletions scripts/make-npm-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ Fs.copyFileSync(
Path.join(releaseFolder, 'postinstall.js')
);

const filesToTouch = ['query-json'];

for (const file of filesToTouch) {
const p = Path.join(releaseFolder, file);
mkdirpSync(Path.dirname(p));
Fs.writeFileSync(p, '');
}

const pkgJson = {
...esyJson,
scripts: {
Expand Down

0 comments on commit 62f4150

Please sign in to comment.