-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (34 loc) · 945 Bytes
/
lint.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
31
32
33
34
35
36
37
38
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "npm"
- run: npm ci --legacy-peer-deps
env:
PACKAGES_PAT: ${{ secrets.PACKAGES_PAT }}
- run: npm run lint
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.JANEIRL_SSH_DEPLOY_KEY }}
with:
source-directory: '.'
destination-github-username: JaneIRL
destination-repository-username: JaneIRL
destination-repository-name: 'hackuta2023-site'
user-email: [email protected]
target-branch: main