Skip to content

Commit

Permalink
fix api build script
Browse files Browse the repository at this point in the history
  • Loading branch information
gtibrett committed Jun 23, 2024
1 parent c061e03 commit d1b0446
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@gtibrett:registry=https://npm.pkg.github.com
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=FONT_AWESOME_KEY
11 changes: 5 additions & 6 deletions .github/workflows/release-api-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ jobs:
node-version: 20
registry-url: https://npm.pkg.github.com/

- name: "Setup .npmrc"
- name: "Setup NPM Registries"
run: |
yarn config set npmScopes.fortawesome.npmRegistryServer "https://npm.fontawesome.com/"
yarn config set npmScopes.fortawesome.npmAlwaysAuth true
yarn config set npmScopes.fortawesome.npmAuthToken $NPM_AUTH_TOKEN
env:
NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_TOKEN }}
cp .github/.npmrc ~/.npmrc
sed -i 's/FONT_AWESOME_KEY/${{ secrets.FONT_AWESOME_KEY }}/g' ~/.npmrc
- name: "Checkout"
uses: actions/checkout@v4

- name: "Install"
working-directory: ./packages/api
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PAT_TOKEN }}

- name: "Build"
working-directory: ./packages/api
Expand Down

0 comments on commit d1b0446

Please sign in to comment.