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: 1 addition & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
Expand All @@ -32,9 +32,3 @@ jobs:
- name: Publish to NPM
run: npm publish --provenance --access public

sync:
needs: publish
uses: ./.github/workflows/sync-develop.yml
permissions:
contents: write
pull-requests: write
2 changes: 1 addition & 1 deletion .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/sync-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const tag = context.ref.replace('refs/tags/', '');
const isTag = context.ref.startsWith('refs/tags/');
const tag = isTag ? context.ref.replace('refs/tags/', '') : null;
const { owner, repo } = context.repo;

// Check if develop branch exists
Expand Down Expand Up @@ -64,8 +65,8 @@ jobs:
await github.rest.pulls.create({
owner,
repo,
title: `chore: sync ${tag} from main into develop`,
title: tag ? `chore: sync ${tag} from main into develop` : 'chore: sync main into develop',
head: 'main',
base: 'develop',
body: `Automated back-merge after release ${tag}.`,
body: tag ? `Automated back-merge after release ${tag}.` : 'Automated back-merge from main into develop.',
});
9 changes: 8 additions & 1 deletion .github/workflows/tag_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: '.nvmrc'

- name: Generate Changelog and Tag
id: changelog
Expand All @@ -46,3 +46,10 @@ jobs:
tag_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
generate_release_notes: true

sync:
needs: release
uses: ./.github/workflows/sync-develop.yml
permissions:
contents: write
pull-requests: write
2 changes: 1 addition & 1 deletion .github/workflows/ts-code-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: install node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version-file: '.nvmrc'
- name: run npm install
shell: bash
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ts-code-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: install node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version-file: '.nvmrc'
- name: run npm install
shell: bash
run: npm install
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ If you want to build the library locally or contribute:
### Building the bundle

```
nvm use
npm install
npm run build
```
Expand Down
Loading