Skip to content

Commit

Permalink
chore: Setting up changesets (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
theproducer committed Sep 15, 2023
1 parent 1f86339 commit 4bae71c
Show file tree
Hide file tree
Showing 8 changed files with 587 additions and 22 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)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
29 changes: 29 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release PR

on:
push:
branches:
- main

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

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

- name: 'Setup Tools'
uses: ./.github/actions/setup-tools
with:
skip-install-on-cache-hit: 'true'

- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: pnpm run version
title: "Upcoming Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.5](https://github.com/ionic-team/capacitor-background-runner/compare/1.0.4...1.0.5) (2023-08-17)


Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"nx": "^16.5.5"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"lerna": "^7.1.4"
},
"engines": {
Expand All @@ -21,6 +22,7 @@
"publish:dev": "lerna publish prerelease --conventional-commits --conventional-prerelease --preid dev-$(date +\"%Y%m%dT%H%M%S\") --dist-tag dev --force-publish --no-verify-access --no-changelog --no-git-tag-version --no-push --yes",
"publish:rc": "lerna publish prerelease --conventional-commits --conventional-prerelease --preid rc --dist-tag next --force-publish --no-verify-access --yes",
"publish:release-from-prerelease": "lerna publish --conventional-graduate --conventional-commits --dist-tag latest --force-publish --no-verify-access --yes",
"publish:latest": "lerna publish --conventional-commits --dist-tag latest --force-publish --no-verify-access --yes"
"publish:latest": "lerna publish from-package --dist-tag latest --force-publish --no-verify-access --yes",
"version": "changeset version && cp -R packages/capacitor-plugin/CHANGELOG.md CHANGELOG.md"
}
}
3 changes: 0 additions & 3 deletions packages/android-engine/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.5](https://github.com/ionic-team/capacitor-background-runner/compare/1.0.4...1.0.5) (2023-08-17)

**Note:** Version bump only for package android-engine
Expand Down
2 changes: 0 additions & 2 deletions packages/capacitor-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.5](https://github.com/ionic-team/capacitor-background-runner/compare/1.0.4...1.0.5) (2023-08-17)

Expand Down
Loading

0 comments on commit 4bae71c

Please sign in to comment.