Skip to content

Commit

Permalink
chore: implement covector
Browse files Browse the repository at this point in the history
  • Loading branch information
jbolda committed Jul 11, 2020
1 parent e12a6aa commit 3adf2f8
Show file tree
Hide file tree
Showing 6 changed files with 686 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .changes/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"gitSiteUrl": "https://github.com/lucasfernog/tauri-action/",
"pkgManagers": {
"javascript": {
"version": true,
"publish": true
}
},
"packages": {
"action": {
"path": "./",
"manager": "javascript",
"publish": [
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor } -f",
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor }.${ pkgFile.versionMinor } -f",
"git push --tags -f"
]
}
}
}
17 changes: 17 additions & 0 deletions .changes/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changes
##### via https://github.com/jbolda/covector

As you create PRs and make changes that require a version bump, please add a new markdown file in this folder. You do not note the version *number*, but rather the type of bump that you expect: major, minor, or patch. The filename is not important, as long as it is a `.md`, but we recommend it represents the overall change for our sanity.

When you select the version bump required, you do *not* need to consider depedencies. Only note the package with the actual change, and any packages that depend on that package will be bumped automatically in the process.

Use the following format:
```md
---
"tauri.js": patch
"tauri": minor
---

Change summary goes here

```
17 changes: 17 additions & 0 deletions .github/workflows/covector-status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: covector status
on: [pull_request]

jobs:
covector:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: yarn
- run: yarn workspace action build
- name: covector status
uses: ./packages/action
with:
command: 'status'
37 changes: 37 additions & 0 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: covector version or publish
on:
push:
branches:
- main

jobs:
covector:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- name: git config
run: |
git config --global user.name "${{ github.event.pusher.name }}"
git config --global user.email "${{ github.event.pusher.email }}"
- name: covector version-or-publish
uses: jbolda/covector/packages/action@covector-v0
id: covector
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: 'version-or-publish'
createRelease: true
- name: create pull request
id: cpr
uses: tauri-apps/[email protected]
with:
title: "Publish New Versions"
labels: "version updates"
branch: "release"
body: ${{ steps.covector.outputs.change }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@types/node": "^12.7.12",
"@typescript-eslint/parser": "^2.8.0",
"@zeit/ncc": "^0.20.5",
"covector": "^0.2.3",
"eslint": "^5.16.0",
"eslint-plugin-github": "^2.0.0",
"eslint-plugin-jest": "^22.21.0",
Expand Down
Loading

0 comments on commit 3adf2f8

Please sign in to comment.