Skip to content

Commit

Permalink
Add changeset for publishing (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebeby committed Feb 24, 2021
1 parent 9776718 commit 85893b3
Show file tree
Hide file tree
Showing 9 changed files with 2,937 additions and 296 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/master/docs/common-questions.md)
13 changes: 13 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "cloudfour/test-mule" }
],
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/selfish-dolphins-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'test-mule': minor
---

First publish
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
# Fetch all git history for correct changelog commits
fetch-depth: 0

- name: Setup Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x

- name: Install Dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
uses: changesets/action@master
with:
publish: npm run release
version: npm run version
title: 'Publish Next Version'
commit: 'Publish Next Version'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 85893b3

Please sign in to comment.