Skip to content

Commit

Permalink
chore: setup changesets & release pipeline (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyarthan authored Feb 27, 2024
1 parent 28171de commit a30dd36
Show file tree
Hide file tree
Showing 10 changed files with 896 additions and 13 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)
7 changes: 7 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "titanom/css2tailwind" }],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch"
}
5 changes: 5 additions & 0 deletions .changeset/funny-ligers-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@titanom/css2tailwind": patch
---

setup changesets cli & release pipeline
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
branches:
- master

permissions:
id-token: write

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

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: titanom/github-composite-actions/turbo/[email protected]
with:
pnpm-version: 8

- name: Create Release Pull Request
uses: changesets/action@v1
with:
publish: pnpm release:public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions examples/standalone/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@css2tw/example-standalone",
"type": "module",
"private": true,
"scripts": {
"dev": "run-p vite styles:watch",
"vite": "vite",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
"root:format:check": "prettier --check ./*.* ./.github ./.vscode",
"lint": "turbo lint",
"lint:fix": "turbo lint:fix",
"types": "turbo types"
"types": "turbo types",
"release:dry": "turbo --filter @titanom/css2tailwind release:dry",
"release:ci": "turbo --filter @titanom/css2tailwind release:ci"
},
"devDependencies": {
"@changesets/cli": "2.27.1",
"@titanom/eslint-config": "1.2.0",
"@titanom/prettier-config": "2.0.0",
"@titanom/tsconfig": "0.2.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/css2tailwind/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*

!README.md
!package.json
!dist/*
5 changes: 3 additions & 2 deletions packages/css2tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"format:check": "prettier --check .",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"types": "tsc"
"types": "tsc",
"release:dry": "pnpm build && pnpm publish --dry-run --no-git-checks",
"release:public": "pnpm build && pnpm publish --access public --provenence"
},
"dependencies": {
"autoprefixer": "10.4.17",
"postcss": "8.4.35",
"postcss-js": "4.0.1",
"tailwindcss": "3.4.1",
Expand Down
Loading

0 comments on commit a30dd36

Please sign in to comment.