Skip to content

Commit

Permalink
Merge pull request #82 from Fractal-Tess/dev
Browse files Browse the repository at this point in the history
Version 2
  • Loading branch information
Fractal-Tess authored Jan 24, 2024
2 parents 353ec97 + 18a0179 commit 9a7e97d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Changeset

on:
push:
branches:
- dev

permissions: {}
jobs:
release:
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
name: Release
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- uses: pnpm/[email protected]
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm

- name: Install
run: pnpm install --frozen-lockfile
- name: Install
run: pnpm svelte:build

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset:version
title: Version App
commit: Version App
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ jobs:
with:
fetch-depth: 0

- name: Install Node.js
- name: Pnpm setup
uses: pnpm/action-setup@v2
with:
version: 8.10

- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"check": "svelte-check --tsconfig ./tsconfig.json",
"svelte:build": "vite build",
"svelte:dev": "vite dev",
"changeset": "changeset"
"changeset:version": "changeset version"
},
"lint-staged": {
"*.{ts,svelte}": [
Expand Down

0 comments on commit 9a7e97d

Please sign in to comment.