-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
5,886 additions
and
8,298 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 |
---|---|---|
@@ -1,28 +1,29 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: 'Build - Test - [Publish]' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16.13' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'yarn' | ||
- run: yarn --frozen-lockfile | ||
- run: yarn build | ||
- run: yarn test | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
- run: pnpm setup | ||
- run: pnpm build | ||
- run: pnpm test | ||
- run: cp README.md packages/vanilla-hcaptcha | ||
- name: 'Publish' | ||
if: contains('refs/heads/master', github.ref) | ||
run: lerna publish -y from-package | ||
run: pnpm --filter=@hcaptcha/vanilla-hcaptcha publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
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
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Demo hCaptcha Web Component - Vue 2</title> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
|
||
<!-- <script src="https://cdn.jsdelivr.net/npm/vanilla-hcaptcha"></script>--> | ||
<!-- <script src="https://cdn.jsdelivr.net/npm/@hcaptcha/vanilla-hcaptcha"></script>--> | ||
<script src="/node_modules/vanilla-hcaptcha/dist/index.min.js"></script> | ||
</head> | ||
<body> | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,26 +2,20 @@ | |
"name": "vanilla-hcaptcha", | ||
"description": "Vanilla Web Component for hCaptcha. 0 dependencies. <1kb gzipped.", | ||
"version": "1.0.2", | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*", | ||
"examples/*" | ||
], | ||
"nohoist": [ "**/vanilla-hcaptcha" ] | ||
}, | ||
"author": { | ||
"name": "Sergiu Danalachi <[email protected]>", | ||
"url": "https://github.com/DSergiu" | ||
}, | ||
"packageManager": "[email protected]", | ||
"private": true, | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "lerna run dev --stream", | ||
"build": "lerna run build --stream", | ||
"test": "lerna run test --stream" | ||
"setup": "pnpm install --frozen-lockfile --prefer-offline", | ||
"dev": "pnpm -r --stream run dev", | ||
"build": "pnpm -r --stream run build", | ||
"test": "pnpm --r -stream run test" | ||
}, | ||
"devDependencies": { | ||
"lerna": "^4.0.0", | ||
"serve": "^13.0.2" | ||
} | ||
} |
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,21 +1,28 @@ | ||
{ | ||
"name": "vanilla-hcaptcha", | ||
"name": "@hcaptcha/vanilla-hcaptcha", | ||
"description": "Vanilla Web Component for hCaptcha. 0 dependencies. <1kb gzipped.", | ||
"version": "1.0.2", | ||
"main": "dist/index.min.js", | ||
"types": "dist/hcaptcha.d.ts", | ||
"author": { | ||
"name": "Sergiu Danalachi <[email protected]>", | ||
"url": "https://github.com/DSergiu" | ||
"author": "hCaptcha team and contributors", | ||
"homepage": "https://github.com/hCaptcha/vanilla-hcaptcha", | ||
"organization": "hCaptcha", | ||
"license": "MIT", | ||
"private": false, | ||
"publishConfig": { | ||
"registry":"https://registry.npmjs.org", | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/hCaptcha/vanilla-hcaptcha.git", | ||
"web": "https://github.com/hCaptcha/vanilla-hcaptcha" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"demo.html" | ||
], | ||
"homepage": "https://github.com/DSergiu/vanilla-hcaptcha", | ||
"private": false, | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "rollup -c -w", | ||
"build": "rollup -c", | ||
|
Oops, something went wrong.