Skip to content

Commit

Permalink
fix(ts): package-js needs npmrc [CLK-252116]
Browse files Browse the repository at this point in the history
  • Loading branch information
ahammond committed May 14, 2024
1 parent 3b92bff commit 321444b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/clickup-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ export module clickupTs {
workflowBootstrapSteps: [
{
name: 'GitHub Packages authorization',
// This does some env var obverloading where the release step also defines NPM_TOKEN with the action token that allows uploading
// This does some env var overloading where the release step also defines NPM_TOKEN with the action token that allows uploading
env: { NPM_TOKEN: '${{ secrets.ALL_PACKAGE_READ_TOKEN }}' },
run: [
'cat > .npmrc <<EOF',
'//npm.pkg.github.com/:_authToken=${NPM_TOKEN}',
'@time-loop:registry=https://npm.pkg.github.com/',
'EOF',
'if [ -d "dist" ]; then', // package-js workflow needs a .npmrc in the dist directory
'cp .npmrc dist',
'fi',
].join('\n'),
},
{
Expand Down
27 changes: 27 additions & 0 deletions test/__snapshots__/clickup-cdk.test.ts.snap

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

3 changes: 3 additions & 0 deletions test/__snapshots__/clickup-ts.test.ts.snap

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

0 comments on commit 321444b

Please sign in to comment.