mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 01:53:24 +01:00
Merge pull request #159 from cloudflare/jacobmgevans/gh-workflow
Automation release
This commit is contained in:
commit
b076e889fb
2 changed files with 6 additions and 30 deletions
30
.github/workflows/publish.yml
vendored
30
.github/workflows/publish.yml
vendored
|
@ -1,30 +0,0 @@
|
||||||
name: Publish
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [released, edited]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.release.tag_name }}
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: "latest"
|
|
||||||
cache: "npm"
|
|
||||||
|
|
||||||
- name: Install modules and build
|
|
||||||
run: npm ci && npm run build
|
|
||||||
|
|
||||||
- uses: JasonEtco/build-and-tag-action@v2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
|
@ -38,3 +38,9 @@ jobs:
|
||||||
publish: npx changeset tag
|
publish: npx changeset tag
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Tag & Release Action
|
||||||
|
if: steps.changesets.outputs.published == 'true'
|
||||||
|
uses: JasonEtco/build-and-tag-action@v2
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
Loading…
Reference in a new issue