-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ar-io/add-typescript-with-ar-io-sdk
feat(sdk): use @ar.io/sdk and update to typescript
- Loading branch information
Showing
21 changed files
with
5,637 additions
and
1,685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# build extension and publish on merges to main | ||
|
||
name: Build and Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set Up node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn --immutable --immutable-cache | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Zip | ||
run: zip -r dist.zip dist | ||
|
||
- name: Publish | ||
if: github.ref == 'refs/heads/main' | ||
uses: Klemensas/chrome-extension-upload-action | ||
with: | ||
refresh-token: ${{ secrets.REFRESH_TOKEN }} | ||
client-id: ${{ secrets.CLIENT_ID }} | ||
client-secret: ${{ secrets.CLIENT_SECRET }} | ||
file-name: './dist.zip' | ||
app-id: ${{ secrets.APP_ID }} | ||
publish: true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Ignore node_modules directory | ||
node_modules/ | ||
|
||
# Ignore TypeScript build output | ||
dist/ | ||
|
||
# Ignore logs | ||
logs/ | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Ignore environment variable files | ||
.env | ||
.env.local | ||
.env.*.local | ||
|
||
# Ignore macOS system files | ||
.DS_Store | ||
|
||
# Ignore Linux system files | ||
*.swp | ||
|
||
# Ignore temporary files | ||
tmp/ | ||
temp/ | ||
|
||
# Ignore IDE and editor specific files | ||
.vscode/ | ||
.idea/ | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
# Ignore TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Ignore Chrome extension files that shouldn't be committed | ||
chrome-profile/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": { | ||
"eslint.nodePath": ".yarn/sdks", | ||
"eslint.packageManager": "yarn", | ||
"prettier.prettierPath": ".yarn/sdks/prettier/index.js", | ||
"typescript.tsdk": ".yarn/sdks/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
"folders": [ | ||
{ | ||
"path": ".", | ||
}, | ||
], | ||
"settings": { | ||
"eslint.nodePath": ".yarn/sdks", | ||
"eslint.packageManager": "yarn", | ||
"prettier.prettierPath": ".yarn/sdks/prettier/index.js", | ||
"typescript.tsdk": ".yarn/sdks/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
}, | ||
} | ||
} |
Oops, something went wrong.