Skip to content

Commit

Permalink
Merge branch 'main' into nekowinston/issue195
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Oct 30, 2023
2 parents 3ba4e01 + 2c51945 commit e6cb526
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:
on:
push:
branches: [main]
paths:
Expand All @@ -20,16 +20,16 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- run: corepack enable
- name: Install dependencies & build
run: |
yarn install --immutable
yarn build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
exitOnceUploaded: true
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ jobs:
lint-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- run: corepack enable
- name: Install dependencies & build
run: |
yarn install --immutable
Expand All @@ -30,4 +31,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: catppuccin-vsc.vsix
path: ${{ steps.packageExtension.outputs.vsixPath }}
path: ${{ steps.packageExtension.outputs.vsixPath }}
23 changes: 10 additions & 13 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,27 @@ jobs:
id: release
with:
release-type: node
outputs:
release_created: ${{ steps.release.outputs.release_created }}

- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}

- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
release:
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- run: corepack enable

- name: Build
if: ${{ steps.release.outputs.release_created }}
run: |
yarn install --immutable
yarn build
- name: Publish to orphaned branch
if: ${{ steps.release.outputs.release_created }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -42,12 +45,9 @@ jobs:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
exclude_assets: ".flag"
# this is here because we're not using the Action for it's main purpose (GH pages)
# we're not interested in preventing Jekyll (creating a `.nojekyll` file)
enable_jekyll: true

- name: Package Extension
if: ${{ steps.release.outputs.release_created }}
id: packageExtension
uses: HaaLeo/publish-vscode-extension@v1
with:
Expand All @@ -56,7 +56,6 @@ jobs:
dryRun: true

- name: Publish to Visual Studio Marketplace
if: ${{ steps.release.outputs.release_created }}
uses: HaaLeo/publish-vscode-extension@v1
with:
yarn: true
Expand All @@ -65,7 +64,6 @@ jobs:
registryUrl: https://marketplace.visualstudio.com

- name: Publish to Open VSX Registry
if: ${{ steps.release.outputs.release_created }}
uses: HaaLeo/publish-vscode-extension@v1
# continue even if OpenVSX fails
continue-on-error: true
Expand All @@ -77,7 +75,6 @@ jobs:
extensionFile: ${{ steps.packageExtension.outputs.vsixPath }}

- name: Add fils to GH Release
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
"scripts": {
"build": "yarn compile:theme && yarn compile",
"build-storybook": "storybook build",
"chromatic": "chromatic --exit-zero-on-changes --exit-once-uploaded",
"chromatic": "chromatic --exit-zero-on-changes --exit-once-uploaded --project-token chpt_e3cba49738d7554",
"compile": "tsup",
"compile:theme": "ts-node src/hooks/generateThemes.ts",
"dev": "DEBUG=1 yarn build",
Expand Down

0 comments on commit e6cb526

Please sign in to comment.