Skip to content

Commit

Permalink
chore(main): release 1.11.0 (#40)
Browse files Browse the repository at this point in the history
🤖 I have created a release *beep* *boop*
---

##
[1.11.0](v1.10.0...v1.11.0)
(2024-04-12)

### Features

* allow json parsing in templates
([#39](#39))
([6b2ea9b](6b2ea9b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
  • Loading branch information
stord-engineering-account committed Apr 12, 2024
0 parents commit 4a44aab
Show file tree
Hide file tree
Showing 34 changed files with 28,915 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
merge_group:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'main'}}

jobs:
Build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.7.0
cache: npm

- id: cache
name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-16-nodemodules-${{ hashFiles('package-lock.json') }}

- if: steps.cache.outputs.cache-hit != 'true'
name: Install Dependencies
run: npm ci

- name: Build
run: npm run build

Test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.7.0
cache: npm

- id: cache
name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-16-nodemodules-${{ hashFiles('package-lock.json') }}

- if: steps.cache.outputs.cache-hit != 'true'
name: Install Dependencies
run: npm ci

- name: Test
run: npm run test
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: PR

on:
pull_request:
types:
- edited
- opened
- reopened
- synchronize

jobs:
title:
name: Check Title
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Check
uses: stordco/[email protected]
with:
regex: '^(feat!|fix!|fix|feat|chore|(fix|feat|chore)\(\w.*\)):\s(\[\w{1,8}-\d{1,8}\]|.*).*'
hint: |
You can pass the following formats:
fix: [OR-123] some title of the PR
fix(scope): [OR-123] some title of the PR
feat: [OR-1234] some title of the PR
chore: update some action
76 changes: 76 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
name: Release

on:
push:
branches:
- main

jobs:
please:
name: Please
runs-on: ubuntu-latest

steps:
- id: release
name: Release
uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: "@stordco/actions-sync"
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
extra-files: README.md

- if: steps.release.outputs.release_created
name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ steps.release.outputs.tag_name }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
persist-credentials: true

- if: steps.release.outputs.release_created
name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm

- if: steps.release.outputs.release_created
id: cache
name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-16-nodemodules-${{ hashFiles('package-lock.json') }}

- if: steps.release.outputs.release_created && steps.cache.outputs.cache-hit != 'true'
name: Install Dependencies
run: npm ci

- if: steps.release.outputs.release_created
name: Build
run: npm run build

- if: steps.release.outputs.release_created
name: Tag
run: |
git config user.name stord-engineering-account
git config user.email [email protected]
git add -f dist
git commit --amend --no-edit
git tag -d v${{ steps.release.outputs.major }} || true
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -d latest || true
git push origin :v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git push origin :latest || true
git tag -a v${{ steps.release.outputs.major }} -m "chore(main): release ${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "chore(main): release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git tag -a latest -m "chore(main): release ${{ steps.release.outputs.tag_name }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
git push origin latest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CHANGELOG.md
dist
node_modules
test/fixtures
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node 20.7.0
Loading

0 comments on commit 4a44aab

Please sign in to comment.