Update changeset and contributing information and add new workflow #39
|
@ -7,5 +7,5 @@
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"baseBranch": "main",
|
"baseBranch": "main",
|
||||||
"updateInternalDependencies": "patch",
|
"updateInternalDependencies": "patch",
|
||||||
"ignore": []
|
"ignore": ["playground"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
permissions: {} #reset
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
# IMPORTANT: prevent this action from running on forks
|
||||||
|
if: github.repository == 'MatthiesenXYZ/astro-ghostcms'
|
||||||
|
permissions:
|
||||||
|
contents: write # to create release (changesets/action)
|
||||||
|
pull-requests: write # to create pull request (changesets/action)
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
- run: npm ci
|
||||||
|
- name: Publish to npm
|
||||||
|
id: changesets
|
||||||
|
uses: changesets/action@v1
|
||||||
|
with:
|
||||||
|
publish: npm run release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@ -7,8 +7,13 @@ We love your input! We want to make contributing to this project as easy and tra
|
||||||
- Proposing new features
|
- Proposing new features
|
||||||
- Becoming a maintainer
|
- Becoming a maintainer
|
||||||
|
|
||||||
## We Develop with Github
|
## We Develop with Github & Sync our Code to GitLab
|
||||||
We use github to host code, to track issues and feature requests, as well as accept pull requests.
|
We use github to host code, to track issues and feature requests, as well as accept pull requests. Then All of our Code is Mirrored to GitLab.
|
||||||
|
|
||||||
|
## We Use Changesets to aid with Development!
|
||||||
|
This repo uses [changesets](https://github.com/changesets/changesets) to make releasing updates easier. For you, the contributor, this means you should run `pnpm changeset` when you've got your changes ready.
|
||||||
|
|
||||||
|
For more details, see this short document on [adding a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md#i-am-in-a-single-package-repository).
|
||||||
|
|
||||||
## We Use Github, So All Code Changes Happen Through Pull Requests and Commits
|
## We Use Github, So All Code Changes Happen Through Pull Requests and Commits
|
||||||
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
|
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "biome check .",
|
"lint": "biome check .",
|
||||||
|
"changeset": "changeset",
|
||||||
|
"release": "changeset publish",
|
||||||
"lint:fix": "biome check --apply .",
|
"lint:fix": "biome check --apply .",
|
||||||
"playground:dev": "pnpm --filter playground dev",
|
"playground:dev": "pnpm --filter playground dev",
|
||||||
"api:test": "pnpm --filter astro-ghostcms test",
|
"api:test": "pnpm --filter astro-ghostcms test",
|
||||||
|
|
Loading…
Reference in New Issue