Skip to content

Commit

Permalink
(#400) Allow GitHub Action to publish to NPM
Browse files Browse the repository at this point in the history
As found in the Yarn docs, by adding a
`-fallback` onto the passed in environment
variable, if one is not supplied, it will
"fallback" to a default value. This is exactly
what is needed in order for repositories to use
choco-theme that do not have this environment
variable set. This will allow GitHub Actions to
publish to NPM and also allow repositories to
install choco-theme like normal.
  • Loading branch information
st3phhays committed Apr 18, 2024
1 parent 7d2ad1d commit 36627bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ checksumBehavior: update
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.1.cjs

npmAuthToken: ${NODE_AUTH_TOKEN-fallback}

0 comments on commit 36627bc

Please sign in to comment.