Skip to content

Commit 64532b3

Browse files
authored
Fix publish. (#77)
* Fix publish. * Add install script as a countermeasure to prevent compilations when the module is installed.
1 parent afc5eaa commit 64532b3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
id: package
2727
- uses: actions/upload-artifact@v3
2828
with:
29-
name: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}
29+
name: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz
3030
path: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz
3131

3232
create_release:
@@ -68,8 +68,12 @@ jobs:
6868
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6969
steps:
7070
- uses: actions/checkout@v3
71+
- uses: codex-team/[email protected]
72+
id: package
7173
- uses: actions/download-artifact@v3
74+
with:
75+
name: datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz
7276
- uses: actions/setup-node@v3
7377
with:
7478
registry-url: 'https://registry.npmjs.org'
75-
- run: npm publish
79+
- run: npm publish ./datadog-native-iast-taint-tracking-${{ steps.package.outputs.version }}.tgz

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:arm": "node-gyp configure -arch=arm64 && node-gyp build -arch=arm64",
1111
"build:asan": "node-gyp configure && CXXFLAGS=\"-g -O0 -fsanitize=address\" LDFLAGS=\"-fsanitize=address\" node-gyp build",
1212
"build:valgrind": "node-gyp configure && CXXFLAGS=\"-g -O0\" node-gyp build",
13+
"install": "exit 0",
1314
"lint": "eslint . -c ./.eslintrc.json",
1415
"postbuild": "node ./scripts/pack.js",
1516
"postbuild:asan": "npm run postbuild",

0 commit comments

Comments
 (0)