Skip to content

Commit

Permalink
Introduce Changesets (#28)
Browse files Browse the repository at this point in the history
* Setup changesets

* Example patch

* Update rossums-universal-robots.php

* linting

* Update .changeset/spotty-bottles-shave.md

* Enter prerelease mode, change base branch

* Add initial pre-release workflow

---------

Co-authored-by: CobyPear <[email protected]>
  • Loading branch information
pwtyler and CobyPear authored Dec 18, 2023
1 parent d25f4d5 commit 4b97e20
Show file tree
Hide file tree
Showing 9 changed files with 2,498 additions and 26 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)
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "release",
"updateInternalDependencies": "patch",
"ignore": [],
"privatePackages": {
"version": true,
"tag": true
}
}
8 changes: 8 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mode": "pre",
"tag": "dev",
"initialVersions": {
"plugin-pipeline-example": "0.1.1-dev"
},
"changesets": []
}
5 changes: 5 additions & 0 deletions .changeset/spotty-bottles-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"plugin-pipeline-example": major
---

Introduced Counter. The Counter returns 0. [28](https://github.com/pantheon-systems/plugin-pipeline-example/pull/28)
34 changes: 34 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- main

permissions:
pull-requests: write
contents: write

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

jobs:
release:
name: Pre-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: 20
- name: Install Dependencies
run: npm i
- name: Create Release Pull Request
uses: changesets/action@v1
with:
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
version: npm run version
publish: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. -->
<property name="prefixes" type="array" value="rossums-universal-robots"/>
<property name="prefixes" type="array" value="rur"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
Expand Down
Loading

0 comments on commit 4b97e20

Please sign in to comment.