feat: add covector

pull/53/head
Jonas Kruckenberg 3 years ago
parent ef96f78e6c
commit 14b717df7f

@ -0,0 +1,117 @@
{
"gitSiteUrl": "https://github.com/tauri-apps/plugins-workspace/",
"pkgManagers": {
"javascript": {
"version": true,
"getPublishedVersion": "npm view ${ pkgFile.pkg.name } version",
"publish": ["npm publish --access public"]
},
"rust": {
"version": true,
"getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p' -",
"publish": ["cargo publish"]
}
},
"packages": {
"tauri-plugin-authenticator": {
"path": "./plugins/authenticator",
"manager": "rust"
},
"tauri-plugin-authenticator-api": {
"path": "./plugins/authenticator",
"manager": "javascript"
},
"tauri-plugin-autostart": {
"path": "./plugins/autostart",
"manager": "rust"
},
"tauri-plugin-autostart-api": {
"path": "./plugins/autostart",
"manager": "javascript"
},
"tauri-plugin-fs-extra": {
"path": "./plugins/fs-extra",
"manager": "rust"
},
"tauri-plugin-fs-extra-api": {
"path": "./plugins/fs-extra",
"manager": "javascript"
},
"tauri-plugin-fs-watch": {
"path": "./plugins/fs-watch",
"manager": "rust"
},
"tauri-plugin-fs-watch-api": {
"path": "./plugins/fs-watch",
"manager": "javascript"
},
"tauri-plugin-log": {
"path": "./plugins/log",
"manager": "rust"
},
"tauri-plugin-log-api": {
"path": "./plugins/log",
"manager": "javascript"
},
"tauri-plugin-localhost": {
"path": "./plugins/localhost",
"manager": "rust"
},
"tauri-plugin-persisted-scope": {
"path": "./plugins/persisted-scope",
"manager": "rust"
},
"tauri-plugin-positioner": {
"path": "./plugins/positioner",
"manager": "rust"
},
"tauri-plugin-positioner-api": {
"path": "./plugins/positioner",
"manager": "javascript"
},
"tauri-plugin-sql": {
"path": "./plugins/sql",
"manager": "rust"
},
"tauri-plugin-sql-api": {
"path": "./plugins/sql",
"manager": "javascript"
},
"tauri-plugin-store": {
"path": "./plugins/store",
"manager": "rust"
},
"tauri-plugin-store-api": {
"path": "./plugins/store",
"manager": "javascript"
},
"tauri-plugin-stronghold": {
"path": "./plugins/stronghold",
"manager": "rust"
},
"tauri-plugin-stronghold-api": {
"path": "./plugins/stronghold",
"manager": "javascript"
},
"tauri-plugin-upload": {
"path": "./plugins/upload",
"manager": "rust"
},
"tauri-plugin-upload-api": {
"path": "./plugins/upload",
"manager": "javascript"
},
"tauri-plugin-websocket": {
"path": "./plugins/websocket",
"manager": "rust"
},
"tauri-plugin-websocket-api": {
"path": "./plugins/websocket",
"manager": "javascript"
},
"tauri-plugin-window-state": {
"path": "./plugins/window-state",
"manager": "rust"
}
}
}

@ -0,0 +1,30 @@
# 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 that it represents the overall change for organizational purposes.
When you select the version bump required, you do _not_ need to consider dependencies. 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
---
"package-a": patch
"package-b": minor
---
Change summary goes here
```
Summaries do not have a specific character limit, but are text only. These summaries are used within the (future implementation of) changelogs. They will give context to the change and also point back to the original PR if more details and context are needed.
Changes will be designated as a `major`, `minor` or `patch` as further described in [semver](https://semver.org/).
Given a version number MAJOR.MINOR.PATCH, increment the:
- MAJOR version when you make incompatible API changes,
- MINOR version when you add functionality in a backwards compatible manner, and
- PATCH version when you make backwards compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format, but will be discussed prior to usage (as extra steps will be necessary in consideration of merging and publishing).

@ -0,0 +1,16 @@
name: covector status
on: [pull_request]
jobs:
covector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # required for use of git history
- name: covector status
uses: jbolda/covector/packages/action@covector-v0.7
id: covector
with:
command: "status"

@ -0,0 +1,50 @@
name: version or publish
on:
push:
branches:
- dev
jobs:
version-or-publish:
runs-on: ubuntu-latest
timeout-minutes: 65
outputs:
change: ${{ steps.covector.outputs.change }}
commandRan: ${{ steps.covector.outputs.commandRan }}
successfulPublish: ${{ steps.covector.outputs.successfulPublish }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # required for use of git history
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: "https://registry.npmjs.org"
- name: cargo login
run: cargo login ${{ secrets.crate_token }}
- 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 (publish when no change files present)
uses: jbolda/covector/packages/action@covector-v0.7
id: covector
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
CARGO_AUDIT_OPTIONS: ${{ secrets.CARGO_AUDIT_OPTIONS }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: "version-or-publish"
createRelease: true
- name: Create Pull Request With Versions Bumped
id: cpr
uses: peter-evans/create-pull-request@v3
if: steps.covector.outputs.commandRan == 'version'
with:
title: "Publish New Versions"
commit-message: "publish new versions"
labels: "version updates"
branch: "release"
body: ${{ steps.covector.outputs.change }}
Loading…
Cancel
Save