sushiswap-dump 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,60 @@
1
+ name: Update dump.csv
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ schedule:
8
+ - cron: '0 * * * *'
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: write
13
+
14
+ jobs:
15
+ update-data:
16
+
17
+ permissions:
18
+ contents: write
19
+ id-token: write # Required for OIDC
20
+
21
+ runs-on: ubuntu-latest
22
+
23
+ steps:
24
+ - name: Checkout repository
25
+ uses: actions/checkout@v4
26
+ with:
27
+ lfs: true
28
+
29
+ - name: Setup Node.js
30
+ uses: actions/setup-node@v4
31
+ with:
32
+ node-version: '22'
33
+ registry-url: 'https://registry.npmjs.org'
34
+
35
+ - name: Update npm
36
+ run: npm install -g npm@latest
37
+
38
+ - name: Install dependencies
39
+ run: npm install
40
+
41
+ - name: Run update
42
+ run: npm start
43
+
44
+ - name: Commit and push changes
45
+ id: commit
46
+ run: |
47
+ git config --global user.name "github-actions[bot]"
48
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
49
+ git add dump.csv
50
+ if ! git diff --cached --quiet; then
51
+ npm version patch --force -m "chore: update dump.csv to %s [skip ci]"
52
+ git push --follow-tags
53
+ echo "can_publish=true" >> $GITHUB_OUTPUT
54
+ else
55
+ echo "No changes"
56
+ fi
57
+
58
+ - name: Publish to NPM
59
+ if: steps.commit.outputs.can_publish == 'true'
60
+ run: npm publish