Skip to content

Commit

Permalink
ci: setup changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceMaes committed Apr 27, 2024
1 parent f6cdf0e commit dba6373
Show file tree
Hide file tree
Showing 6 changed files with 621 additions and 5 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)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "IgnaceMaes/ember-phosphor-icons" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup pnpm and Node.js 20
uses: wyvox/action-setup-pnpm@v2
with:
node-version: 20

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 11 additions & 4 deletions ember-phosphor-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"name": "ember-phosphor-icons",
"version": "0.0.0",
"description": "The default blueprint for Embroider v2 addons.",
"description": "A clean and friendly icon family for Ember, too!",
"keywords": [
"ember-addon"
"ember-addon",
"icons",
"svg",
"phosphor",
"design",
"interface",
"UI",
"UX"
],
"repository": "",
"repository": "https://github.com/IgnaceMaes/ember-phosphor-icons.git",
"license": "MIT",
"author": "",
"author": "Ignace Maes (https://ignacemaes.com/)",
"exports": {
".": {
"types": "./declarations/index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
"start:test-app": "pnpm --filter test-app start",
"test": "pnpm --filter '*' test",
"test:ember": "pnpm --filter '*' test:ember",
"assemble": "tsx bin/assemble.ts"
"assemble": "tsx bin/assemble.ts",
"release": "changeset publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@glint/core": "^1.2.1",
"@types/node": "^20.12.7",
"chalk": "^5.3.0",
Expand Down
Loading

0 comments on commit dba6373

Please sign in to comment.