Merge pull request #132 from cloudflare/jacobmgevans/changesets

Add Changesets
This commit is contained in:
Jacob M-G Evans 2023-08-09 15:28:38 -05:00 committed by GitHub
commit 0c094f5307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 65 additions and 4 deletions

8
.changeset/README.md Normal file
View file

@ -0,0 +1,8 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

13
.changeset/config.json Normal file
View file

@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "cloudflare/wrangler-action" }
],
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}

View file

@ -0,0 +1,5 @@
---
"wrangler-action": patch
---
Adding Changesets

38
.github/workflows/changesets.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
if: ${{ github.repository_owner == 'cloudflare' }}
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: read
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "latest"
cache: "npm"
- name: Install modules
run: npm ci
- name: Create Version PR
id: changesets
uses: changesets/action@v1
with:
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -1,8 +1,5 @@
name: Wrangler Action Self Testing name: Wrangler Action Self Testing
on: on:
push:
branches:
- main
pull_request: pull_request:
branches: branches:
- main - main

View file

@ -1,6 +1,6 @@
{ {
"name": "wrangler-action", "name": "wrangler-action",
"version": "3.0.0", "version": "3.0.1",
"description": "GitHub Action to use [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/).", "description": "GitHub Action to use [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/).",
"author": "wrangler@cloudflare.com", "author": "wrangler@cloudflare.com",
"license": "MIT OR Apache-2.0", "license": "MIT OR Apache-2.0",