Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: env passthrough for publish:safe #109

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,24 @@ jobs:
- name: "Use Node.js ${{ matrix.node-version }}" # v4.0.2
uses: "actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8"
with:
node-version: "${{ matrix.node-version }}"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
node-version: "${{ matrix.node-version }}"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: "Use Deno ${{ matrix.deno-version }}" # v1.3.0
uses: denoland/setup-deno@ba9dcf3bc3696623d1add6a2f5181ee1b5143de5
with:
deno-version: "${{ matrix.deno-version }}"
- name: "Install dependencies"
run: "pnpm install --recursive --frozen-lockfile"
- name: "Login into NPMJS"
run: |
pnpm config set "//registry.npmjs.org/:_authToken" "${NODE_AUTH_TOKEN}";
echo "provenance=true" >> .npmrc
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
env:
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
- name: "Publish to NPM registry"
run: "pnpm turbo publish:safe"
run: "pnpm turbo publish:safe --env-mode=loose"
working-directory: "."
env:
NPM_CONFIG_PROVENANCE: "true"
Expand Down
1 change: 1 addition & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
set -eu
set -o pipefail

pnpm turbo format-staged
pnpm turbo all
5 changes: 4 additions & 1 deletion @coderspirit/lambda-ioc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@
"bugs": {
"url": "https://github.com/Coder-Spirit/nominal/issues"
},
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
"publishConfig": {
"provenance": true
}
}
5 changes: 4 additions & 1 deletion @coderspirit/nominal-inputs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@
"bugs": {
"url": "https://github.com/Coder-Spirit/nominal/issues"
},
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
"publishConfig": {
"provenance": true
}
}
5 changes: 4 additions & 1 deletion @coderspirit/nominal-symbols/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@
"bugs": {
"url": "https://github.com/Coder-Spirit/nominal/issues"
},
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
"publishConfig": {
"provenance": true
}
}
5 changes: 4 additions & 1 deletion @coderspirit/nominal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@
"bugs": {
"url": "https://github.com/Coder-Spirit/nominal/issues"
},
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
"publishConfig": {
"provenance": true
}
}
5 changes: 4 additions & 1 deletion @coderspirit/safe-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,8 @@
"bugs": {
"url": "https://github.com/Coder-Spirit/nominal/issues"
},
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
"publishConfig": {
"provenance": true
}
}
159 changes: 159 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading