-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 943 Bytes
/
dnt.yaml
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
name: dnt
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main
- uses: denoland/setup-deno@v1
with:
deno-version: canary
- name: Run build script
run: deno task dnt $GITHUB_SHA
- name: Checkout new branch for npm/ content
run: |
git checkout -B npm || git checkout npm
git rm -rf .
cp -r npm/* .
rm -rf npm
git config --global user.email "[email protected]"
git config --global user.name "LC-Dailies Bot"
git add .
git commit -m "Publish npm ✨"
- name: Push new branch to remote
run: |
# Replace with the appropriate remote repository URL
# Example: git push --force origin npm
git push --force -u origin npm