-
Notifications
You must be signed in to change notification settings - Fork 16
30 lines (29 loc) · 1.01 KB
/
cleanup.yml
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
name: Cleanup
on:
pull_request:
types: [closed]
jobs:
docs:
if: github.actor != 'dependabot[bot]' && github.actor != 'lime-opensource'
name: Remove PR docs
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_USERNAME: lime-opensource
GH_TOKEN: ${{ secrets.CREATE_RELEASE }}
CI: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ secrets.CREATE_RELEASE }}
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- run: node -v && npm -v
- run: npm ci
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Lime Technologies OSS"
- run: npm run docs:publish -- --remove=PR-${{ github.event.pull_request.number }}