Skip to content

Commit

Permalink
Add changesets workflow (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkucharczyk authored Oct 1, 2023
1 parent 9a587fc commit 24e3ee1
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["test-app"]
Expand Down
2 changes: 2 additions & 0 deletions .changeset/neat-buttons-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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 node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: npm run version
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion ember-context/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@customerio/ember-context",
"version": "0.0.0",
"description": "The default blueprint for Embroider v2 addons.",
"description": "A context API implementation for Ember.js",
"keywords": [
"ember-addon"
],
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"start:addon": "npm start --workspace ember-context -- --no-watch.clearScreen",
"start:test-app": "npm start --workspace test-app",
"test": "npm run test --workspaces --if-present",
"test:ember": "npm run test:ember --workspaces --if-present"
"test:ember": "npm run test:ember --workspaces --if-present",
"version": "changeset version && npm install --package-lock-only",
"release": "npm run build && changeset publish"
},
"devDependencies": {
"concurrently": "^8.2.0",
Expand Down

0 comments on commit 24e3ee1

Please sign in to comment.