Skip to content

Commit

Permalink
changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasptsch committed Sep 2, 2024
1 parent 7b9eeaa commit f75cdc7
Show file tree
Hide file tree
Showing 7 changed files with 3,124 additions and 1,967 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/tough-actors-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@dynamicabot/signales": patch
---

switch to using changeset cli
21 changes: 14 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Publish Package to npmjs
on:
workflow_call:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
permissions:
Expand All @@ -15,7 +16,7 @@ jobs:
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
version: 9
- uses: actions/setup-node@v4
with:
always-auth: true
Expand All @@ -24,11 +25,17 @@ jobs:
registry-url: "https://registry.npmjs.org"

- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm build

# Publish NPM
- run: pnpm semantic-release
- name: create and publish versions
uses: changesets/action@v1
id: create_and_publish_versions
with:
publish: pnpm release
createGithubReleases: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 4 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"test": "tsd",
"build": "tsup",
"release": "semantic-release"
"release": "pnpm publish && pnpm changeset tag"
},
"engines": {
"node": ">=10"
Expand Down Expand Up @@ -44,6 +44,7 @@
"strip-ansi": "^7.0.1"
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^20.0.0",
Expand All @@ -52,7 +53,7 @@
"tsup": "^8.0.0",
"typescript": "^5.0.0"
},
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"publishConfig": {
"access": "public"
},
Expand All @@ -67,20 +68,5 @@
"email": "[email protected]",
"url": "https://www.sebasptsch.dev"
}
],
"release": {
"branches": [
"master"
],
"repositoryUrl": "https://github.com/dynamicabot/signales",
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
}
]
}
Loading

0 comments on commit f75cdc7

Please sign in to comment.