Skip to content

Commit

Permalink
Merge pull request #1 from tokens-studio/first-release
Browse files Browse the repository at this point in the history
chore: create first release, add release workflow
  • Loading branch information
jorenbroekema authored Jul 11, 2024
2 parents 63a9814 + 025b035 commit 187242d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-kiwis-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tokens-studio/color-picker': patch
---

Initial release of `@tokens-studio/color-picker`.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
# Prevents changesets action from creating a PR on forks
if: github.repository == 'tokens-studio/color-picker'
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 21.x
uses: actions/setup-node@v4
with:
node-version: 21.x
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
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: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 187242d

Please sign in to comment.