diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 0000000..e5b6d8d --- /dev/null +++ b/.changeset/README.md @@ -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) diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..c8debb4 --- /dev/null +++ b/.changeset/config.json @@ -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": [] +} diff --git a/.changeset/stale-beers-promise.md b/.changeset/stale-beers-promise.md new file mode 100644 index 0000000..829840f --- /dev/null +++ b/.changeset/stale-beers-promise.md @@ -0,0 +1,5 @@ +--- +"wrangler-action": patch +--- + +Adding Changesets diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml new file mode 100644 index 0000000..c5cd5a0 --- /dev/null +++ b/.github/workflows/changesets.yml @@ -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 }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c3c8aec..43a8aef 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,5 @@ name: Wrangler Action Self Testing on: - push: - branches: - - main pull_request: branches: - main diff --git a/package.json b/package.json index 7f7646b..22de09b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wrangler-action", - "version": "3.0.0", + "version": "3.0.1", "description": "GitHub Action to use [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/).", "author": "wrangler@cloudflare.com", "license": "MIT OR Apache-2.0",