Skip to content

Commit

Permalink
Fix publishing action
Browse files Browse the repository at this point in the history
  • Loading branch information
jesko-plitt committed Nov 26, 2024
1 parent 232162c commit 078ae51
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 56 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ jobs:
node-version: 18.x

- name: Install Dependencies
run: yarn
run: npm ci

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"release": "turbo release"
},
"devDependencies": {
"@becklyn/prettier": "^1.0.2",
"@changesets/cli": "^2.27.10",
"turbo": "^2.3.2",
"typescript": "5.5.4"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=18"
},
Expand Down
45 changes: 24 additions & 21 deletions packages/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{
"name": "@becklyn/eslint",
"version": "0.1.0",
"license": "MIT",
"description": "the eslint-config base we use for our TypeScript apps",
"homepage": "https://github.com/Becklyn-Studios/ts-libs",
"repository": {
"type": "git",
"url": "git+https://github.com/Becklyn-Studios/ts-libs.git",
"directory": "packages/eslint-config"
},
"files": [
"**/*"
],
"dependencies": {
"@dword-design/eslint-plugin-import-alias": "^5.1.1",
"@next/eslint-plugin-next": "^14.1.1",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.17",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-storybook": "^0.8.0"
}
"name": "@becklyn/eslint",
"version": "0.1.0",
"license": "MIT",
"description": "the eslint-config base we use for our TypeScript apps",
"homepage": "https://github.com/Becklyn-Studios/ts-libs",
"repository": {
"type": "git",
"url": "git+https://github.com/Becklyn-Studios/ts-libs.git",
"directory": "packages/eslint-config"
},
"files": [
"**/*"
],
"scripts": {
"release": ""
},
"dependencies": {
"@dword-design/eslint-plugin-import-alias": "^5.1.1",
"@next/eslint-plugin-next": "^14.1.1",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.17",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-storybook": "^0.8.0"
}
}
29 changes: 16 additions & 13 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "@becklyn/tsconfig",
"version": "0.0.0",
"license": "MIT",
"description": "the tsconfig base we use for our TypeScript apps",
"homepage": "https://github.com/Becklyn-Studios/ts-frontend",
"repository": {
"type": "git",
"url": "git+https://github.com/Becklyn-Studios/ts-frontend.git",
"directory": "packages/tsconfig"
},
"files": [
"**/*"
]
"name": "@becklyn/tsconfig",
"version": "0.0.0",
"license": "MIT",
"description": "the tsconfig base we use for our TypeScript apps",
"homepage": "https://github.com/Becklyn-Studios/ts-frontend",
"repository": {
"type": "git",
"url": "git+https://github.com/Becklyn-Studios/ts-frontend.git",
"directory": "packages/tsconfig"
},
"files": [
"**/*"
],
"scripts": {
"release": ""
}
}
40 changes: 22 additions & 18 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
{
"$schema": "https://turbo.build/schema.json",
"ui": "tui",
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**"]
},
"lint": {
"dependsOn": ["^lint"]
},
"check-types": {
"dependsOn": ["^check-types"]
},
"dev": {
"cache": false,
"persistent": true
"$schema": "https://turbo.build/schema.json",
"ui": "tui",
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**"]
},
"release": {
"dependsOn": ["^release"],
"inputs": ["$TURBO_DEFAULT$", ".env*"]
},
"lint": {
"dependsOn": ["^lint"]
},
"check-types": {
"dependsOn": ["^check-types"]
},
"dev": {
"cache": false,
"persistent": true
}
}
}
}

0 comments on commit 078ae51

Please sign in to comment.