Skip to content

Commit

Permalink
feat: enable publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Dec 9, 2024
1 parent 1438ba7 commit 7510ebc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
- name: Install Dependencies
uses: ./.github/workflows/actions/install-dependencies

# - name: Configure NPM token
# run: |
# pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Configure NPM token
run: |
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Changesets Pull Request or Trigger an NPM Publish
id: changesets
Expand Down
20 changes: 14 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@
"dependsOn": ["compile:js", "compile:typedefs"],
"outputs": ["dist/**"]
},
"publish-packages": {
"cache": false,
"dependsOn": [
"build",
"test:typecheck",
"test:unit:browser",
"test:unit:node",
"test:treeshakability:browser",
"test:treeshakability:native",
"test:treeshakability:node"
],
"passThroughEnv": ["GH_TOKEN", "NPM_TOKEN", "PUBLISH_TAG"]
},
"compile:js": {
"dependsOn": ["^compile:js"],
"inputs": [
"$TURBO_DEFAULT$",
"tsconfig.*",
"src/**",
"../build-scripts/*.ts"
],
"inputs": ["$TURBO_DEFAULT$", "tsconfig.*", "src/**", "../build-scripts/*.ts"],
"outputs": ["dist/**"]
},
"compile:typedefs": {
Expand Down

0 comments on commit 7510ebc

Please sign in to comment.