Skip to content

Commit

Permalink
Merge pull request #2 from ChainSafe/beta
Browse files Browse the repository at this point in the history
chore(): release from beta
  • Loading branch information
Tbaut authored Dec 13, 2023
2 parents 129528f + dc647d0 commit 2c6acfb
Show file tree
Hide file tree
Showing 29 changed files with 249 additions and 432 deletions.
8 changes: 3 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"env": {
"browser": true,
"es2021": true
"es2021": true,
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier"
"prettier",
"plugin:cypress/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
"tsconfigRootDir": "./",
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches: [main, beta]

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Install dependencies
run: yarn workspaces focus @chainsafe/cypress-polkadot-wallet
- name: Install semantic-release extra plugins
run: yarn workspace @chainsafe/cypress-polkadot-wallet add @semantic-release/changelog @semantic-release/git semantic-release-yarn --dev
- name: Build
run: yarn plugin:build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npx semantic-release
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@
.pnp.*
node_modules
dist
packages/**/dist
packages/**/dist
packages/**/dist
packages/**/dist
34 changes: 34 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"branches": [
"main",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"semantic-release-yarn",
{
"pkgRoot": "./packages/plugin/",
"mainWorkspace": "@chainsafe/cypress-polkadot-wallet"
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "packages/plugin/dist/**"],
"message": "chore(release): set `package.json` to ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
3 changes: 2 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
nodeLinker: node-modules

npmPublishAccess: 'public'
npmPublishRegistry: 'https://registry.npmjs.org'
yarnPath: .yarn/releases/yarn-4.0.2.cjs
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# [1.0.0-beta.5](https://github.com/ChainSafe/cypress-polkadot-wallet/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2023-12-13)


### Bug Fixes

* release number ([21f44dd](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/21f44dd4d68baa2ed5e232ada8746c197a163112))

# [1.0.0-beta.4](https://github.com/ChainSafe/cypress-polkadot-wallet/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2023-12-13)


### Bug Fixes

* add package.json ([12436a5](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/12436a58a2ad2a15394a6cd50a4e13e83bcec036))
* publish dist ([c45f6cc](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/c45f6cce57ea692b3ec1122b307a0ac0847e0eb1))

# [1.0.0-beta.3](https://github.com/ChainSafe/cypress-polkadot-wallet/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2023-12-13)


### Bug Fixes

* merge beta ([5174dfe](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/5174dfe0c92837ae061ee22c2c9ae7e31e791ab2))
* public access ([35f2def](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/35f2def9169118ca5b9abfb4461704fd71dd80ce))

# [1.0.0-beta.2](https://github.com/ChainSafe/cypress-polkadot-wallet/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2023-12-12)


### Bug Fixes

* comment changes ([cb56ecb](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/cb56ecb27935ce6470219b487589279f8ec52478))

# 1.0.0-beta.1 (2023-12-12)


### Bug Fixes

* add in workspace ([a30b4c0](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/a30b4c07daf300570e5d8741341bddc57030f765))
* add in workspace again ([e6bfb4a](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/e6bfb4acb53ed3d94e0c6c35c1668085048d0813))
* ci workflow ([eee522d](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/eee522d548d0fb3c5f7a812f775b5fbe247cebdb))
* install semantic ([a28b8c6](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/a28b8c6e7cd083cf3b5ca51f3d81b2ba8c6a106e))
* using beta ([1a8fb28](https://github.com/ChainSafe/cypress-polkadot-wallet/commit/1a8fb28f41b39adf0f5e680d1b34eac0c7b6a606))
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# cypress-polkadot-wallet
# cypress-polkadot-wallet plugin

This is the monorepo for `@chainsafe/cypress-polkadot-wallet` plugin.
You can find in `packages/example` an example of a Cypress config to use the package.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "cypress-polkadot-wallet-monorepo",
"private": true,
"scripts": {
"dev": "cypress open",
"build": "tsc",
"plugin:build": "yarn workspace @chainsafe/cypress-polkadot-wallet build",
"build": "yarn workspaces foreach --all run build",
"lint": "yarn workspaces foreach --all run lint",
"formatAll": "yarn workspaces foreach --all run format",
"formatAll-check": "yarn workspaces foreach --all run format-check"
Expand Down

This file was deleted.

25 changes: 0 additions & 25 deletions packages/example/cypress/support/commands.js

This file was deleted.

21 changes: 0 additions & 21 deletions packages/example/cypress/support/e2e.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"format-check": "yarn prettier --check ."
},
"dependencies": {
"@chainsafe/cypress-polkadot-wallet": "0.0.1",
"@chainsafe/cypress-polkadot-wallet": "0.0.0-semantic-release",
"@polkadot/extension-dapp": "^0.46.6"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/example/public/vite.svg

This file was deleted.

13 changes: 0 additions & 13 deletions packages/example/src/counter.js

This file was deleted.

9 changes: 0 additions & 9 deletions packages/example/src/counter.ts

This file was deleted.

79 changes: 0 additions & 79 deletions packages/example/src/main.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/example/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { web3Accounts, web3Enable } from '@polkadot/extension-dapp'
import './style.css'
import { setupCounter } from './counter.ts'

// document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
// <div>
Expand All @@ -20,8 +19,6 @@ import { setupCounter } from './counter.ts'
// </div>
// `

console.log('boom')

document
.querySelector<HTMLButtonElement>('#connect-accounts')!
.addEventListener('click', async () => {
Expand All @@ -35,5 +32,3 @@ document
const allAccounts = await web3Accounts()
document.querySelector<HTMLDivElement>('#all-accounts')!.innerHTML = JSON.stringify(allAccounts)
})

// setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)
1 change: 0 additions & 1 deletion packages/example/src/typescript.svg

This file was deleted.

11 changes: 11 additions & 0 deletions packages/plugin/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "cypress"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/no-namespace": "off",
"trailingComma": "off",
"object-curly-spacing": ["error", "always"],
"prettier/prettier": "error"
}
}
Loading

0 comments on commit 2c6acfb

Please sign in to comment.