-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (50 loc) · 1.51 KB
/
fe-pr-close.yml
File metadata and controls
56 lines (50 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Frontend Pull Request Close Workflow
on:
workflow_call:
inputs:
GHA_BASE:
type: string
required: true
secrets:
JFROG_BASE64_TOKEN:
required: true
JFROG_URL:
required: true
JFROG_USER:
required: true
DOT_NPMRC:
required: true
jobs:
remove-artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22.15.0
- name: Cache Node Modules
id: npm-cache
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Use .npmrc
uses: bduff9/use-npmrc@v1.1
with:
dot-npmrc: ${{ secrets.DOT_NPMRC }}
- name: Install modules
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Delete Snapshots from NPM Registry
uses: collaborationFactory/github-actions/.github/actions/artifacts@master
env:
JFROG_BASE64_TOKEN: ${{ secrets.JFROG_BASE64_TOKEN }}
JFROG_URL: ${{ secrets.JFROG_URL }}
JFROG_USER: ${{ secrets.JFROG_USER }}
ONLY_DELETE_ARTIFACTS: true
BASE: ${{ inputs.GHA_BASE }}
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
PR_NUMBER: ${{ github.event.number }}