Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod committed Feb 19, 2024
1 parent 46c2004 commit 63f3dbf
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 40 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,37 @@ jobs:

# Uses the above list of packages to check for new versions, and publishes them if they are new.
# NOTE: Publishing currently frozen.
# npm-publish:
# runs-on: ubuntu-latest
# needs: get-packages
# strategy:
# matrix:
# package: ${{ fromJson(needs.get-packages.outputs.packages) }}
# steps:
# - uses: actions/checkout@v4
# - run: yarn install && yarn build:mock
# - uses: actions/setup-node@v4
# with:
# node-version: 18
# registry-url: https://registry.npmjs.org
npm-publish:
runs-on: ubuntu-latest
needs: get-packages
strategy:
matrix:
package: ${{ fromJson(needs.get-packages.outputs.packages) }}
steps:
- uses: actions/checkout@v4
- run: yarn install && yarn build:mock
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org

# # Check whether a package build is a new version.
# - name: Check New Version From Build
# id: check_new_version_build
# uses: PostHog/check-package-version@v2
# with:
# path: "./packages/${{ matrix.package }}/dist"
# Check whether a package build is a new version.
- name: Check New Version From Build
id: check_new_version_build
uses: PostHog/check-package-version@v2
with:
path: "./packages/${{ matrix.package }}/dist"

# # Build the package if new version is available.
# - name: Build Package
# if: steps.check_new_version_build.outputs.is-new-version == 'true'
# run: yarn build
# working-directory: "packages/${{ matrix.package }}"
# Build the package if new version is available.
- name: Build Package
if: steps.check_new_version_build.outputs.is-new-version == 'true'
run: yarn build
working-directory: "packages/${{ matrix.package }}"

# # Publish a package build from `dist` folder. Only runs if the package is a new version.
# - name: Publish Package From Build
# if: steps.check_new_version_build.outputs.is-new-version == 'true'
# run: npm publish
# working-directory: "packages/${{ matrix.package }}/dist"
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Publish a package build from `dist` folder. Only runs if the package is a new version.
- name: Publish Package From Build
if: steps.check_new_version_build.outputs.is-new-version == 'true'
run: npm publish
working-directory: "packages/${{ matrix.package }}/dist"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 1 addition & 8 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
{
"packages/assets": "0.5.2",
"packages/ui-core": "2.0.0",
"packages/ui-react": "0.5.0",
"packages/utils": "0.4.0",
"builder": "0.3.0",
"sandbox": "0.3.0"
}
{}
1 change: 0 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"bootstrap-sha": "27283aff707ce928deb4440d80512fbdc1b04e83",
"include-component-in-tag": true,
"packages": {
"packages/assets": {},
Expand Down

0 comments on commit 63f3dbf

Please sign in to comment.