mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-24 19:04:46 +01:00
30 lines
589 B
YAML
30 lines
589 B
YAML
name: Publish
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
on:
|
|
release:
|
|
types: [published, 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 }}
|