Add Changesets

This commit is contained in:
Jacob M-G Evans 2023-08-08 16:59:44 -05:00
parent d05a65f82b
commit 311d514d9d
No known key found for this signature in database
GPG key ID: 2A0C497CAB123094
6 changed files with 62 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

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

@ -0,0 +1,35 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
if: ${{ github.repository_owner == 'cloudflare' }}
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- 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:
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_ENV: "production"

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",