Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ jobs:

- name: Install dependencies
run: npm install

- name: Build library and website
env:
NEXT_PUBLIC_SITE_VERSION: next
run: npm run build

- name: Test library
run: npm run test

- name: Test library accessibility
run: npm run test:accessibility

- name: Publish NEXT version to npm
run: |
sed -i "s#\"version\": \"0.0.0\"#\"version\": \"0.0.0-${GITHUB_SHA:0:7}\"#" ./packages/lib/package.json
sed -i "s#\"version\": \".*\"#\"version\": \"$(jq -r .version ./packages/lib/package.json)-${GITHUB_SHA:0:7}\"#" ./packages/lib/package.json
cd packages/lib
npm publish --tag next --access public
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ jobs:

- name: Install dependencies
run: npm install

- name: Build library and website
run: npm run build

- name: Test library
run: npm run test

- name: Test library accessibility
run: npm run test:accessibility

- name: Publish RELEASE to npm
run: |
sed -i "s#\"version\": \"0.0.0\"#\"version\": \"${TAG_NAME}\"#" ./packages/lib/package.json
sed -i "s#\"version\": \".*\"#\"version\": \"${TAG_NAME}\"#" ./packages/lib/package.json
cd packages/lib
npm publish --access public
env:
Expand Down
1 change: 0 additions & 1 deletion packages/lib/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ export default defineConfig({
entry: ["src/index.ts"],
format: ["cjs", "esm"],
injectStyle: true,
minify: true,
splitting: false,
});