Merge branch 'master' of github.com:tauri-apps/rustdocusaurus

This commit is contained in:
Laegel
2020-07-27 07:43:49 +02:00
7 changed files with 849 additions and 4 deletions

27
.changes/config.json Normal file
View File

@@ -0,0 +1,27 @@
{
"gitSiteUrl": "https://github.com/tauri-apps/rustdocusaurus",
"pkgManagers": {
"javascript": {
"version": true,
"publish": true
}
},
"packages": {
"script": {
"path": "./",
"manager": "javascript",
"publish": false
},
"action": {
"path": "./github-action",
"manager": "javascript",
"preversion": ["yarn", "yarn build"],
"getPublishedVersion": "git tag v${ pkgFile.version } 2> OUT= || echo ${ pkgFile.version }",
"publish": [
"git tag v${ pkgFile.versionMajor } -f",
"git tag v${ pkgFile.versionMajor }.${ pkgFile.versionMinor } -f",
"git push --tags -f"
]
}
}
}

28
.changes/readme.md Normal file
View File

@@ -0,0 +1,28 @@
# 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 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
---
"script": patch
---
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).

16
.github/workflows/covector-status.yml vendored Normal file
View File

@@ -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
- name: covector status
uses: jbolda/covector/packages/action@covector-v0
id: covector
with:
command: 'status'

View File

@@ -0,0 +1,40 @@
name: covector version or publish
on:
push:
branches:
- main
- master
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/create-pull-request@v2.8.0
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 }}

View File

@@ -1,6 +1,7 @@
{
"name": "rustdocusaurus-action",
"license": "MIT",
"version": "1.0.0",
"private": true,
"scripts": {
"run-source": "node index.js",

View File

@@ -14,5 +14,8 @@
"remark-stringify": "^8.0.0",
"turndown": "^6.0.0",
"unified": "^9.0.0"
},
"devDependencies": {
"covector": "^0.3.0"
}
}

738
yarn.lock

File diff suppressed because it is too large Load Diff