Skip to content

Commit c8020a3

Browse files
authored
Merge pull request #30 from KeetaNetwork/bug/fix-publish-secrets
Fix issue where publishing fails due to missing secret
2 parents 143ff19 + 5335d08 commit c8020a3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,12 @@ jobs:
398398
name: napi-module-aarch64-unknown-linux-musl
399399
path: .
400400
- name: Configure NPM Publish
401-
env:
402-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
403401
run: |
404402
echo '//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' >> .npmrc
405403
npm config set "@keetanetwork:registry=https://npm.pkg.github.com"
406404
npm config set "@keetapay:registry=https://npm.pkg.github.com"
407405
npm config set -- '//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}'
408406
- name: Publish
409407
run: make do-npm-publish
408+
env:
409+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 2 additions & 2 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@keetanetwork/asn1-napi-rs",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"homepage": "https://github.com/KeetaNetwork/asn1-napi-rs#readme",
55
"author": "Tanveer Wahid <twahid@keeta.com>",
66
"description": "KeetaNetwork ASN.1 TypeScript-Rust NAPI library",

utils/create-ci-workflow

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,6 @@ for (const target of packageTargets) {
816816
output.push(
817817
/* Setup NPM for Publishing to a GitHub Package Registry */
818818
' - name: Configure NPM Publish',
819-
' env:',
820-
' NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}',
821819
...emitMultiLineScript(4, 'run', [
822820
'echo \'//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}\' >> .npmrc',
823821
'npm config set "@keetanetwork:registry=https://npm.pkg.github.com"',
@@ -827,7 +825,9 @@ output.push(
827825

828826
/* Publish the package */
829827
' - name: Publish',
830-
' run: make do-npm-publish'
828+
' run: make do-npm-publish',
829+
' env:',
830+
' NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}',
831831
);
832832

833833
const outputString = output.join('\n') + '\n';

0 commit comments

Comments
 (0)