Skip to content

ci(action): update actions/upload-artifact action to v4.6.2 #81

ci(action): update actions/upload-artifact action to v4.6.2

ci(action): update actions/upload-artifact action to v4.6.2 #81

Workflow file for this run

name: PR
on:
pull_request:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version-file: package.json
- name: Install Deps
run: npm install
- name: Test
run: |
npm run test
- name: Build
run: |
npm run build
- run: |
zip -qq -9 -vr s3-cloudflare-purge.zip ./dist/*
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: s3-cloudflare-purge
path: s3-cloudflare-purge.zip
- name: Release
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ github.ref_name }} s3-cloudflare-purge.zip