diff --git a/.github/workflows/publish-dry-run.yaml b/.github/workflows/publish-dry-run.yaml deleted file mode 100644 index 6b1f1ec..0000000 --- a/.github/workflows/publish-dry-run.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: publish --dry-run - -on: - workflow_dispatch: - -jobs: - publish_crates_io: - name: publish (crates.io) --dry-run - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - name: apt-get install - run: | - sudo apt-get update - sudo apt-get install -y libwebkit2gtk-4.1-dev - - name: cargo publish - run: cargo publish --dry-run - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - - publish_npmjs_com: - name: publish (npmjs.com) --dry-run - runs-on: ubuntu-latest - permissions: - id-token: write # use of OIDC for npm provenance - - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - with: - version: 9 - - uses: actions/setup-node@v4 - with: - node-version: "lts/*" - registry-url: "https://registry.npmjs.org" - cache: "pnpm" - - run: pnpm install - - name: pnpm publish - run: pnpm publish --access public --no-git-checks --dry-run - env: - NPM_CONFIG_PROVENANCE: true - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d5642c3..fb37c17 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,43 +2,37 @@ name: publish on: workflow_dispatch: + push: + branches: + - main jobs: - publish_crates_io: - name: publish (crates.io) - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - name: apt-get install - run: | - sudo apt-get update - sudo apt-get install -y libwebkit2gtk-4.1-dev - - name: cargo publish - run: cargo publish - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - - publish_npmjs_com: - name: publish (npmjs.com) + publish_gh_packages: + name: Publish to Github Packages runs-on: ubuntu-latest permissions: - id-token: write # use of OIDC for npm provenance - + contents: write + packages: write steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: pnpm setup + uses: pnpm/action-setup@v4 with: version: 9 - - uses: actions/setup-node@v4 + + - name: nodejs setup + uses: actions/setup-node@v4 with: node-version: "lts/*" registry-url: "https://registry.npmjs.org" cache: "pnpm" - - run: pnpm install + + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: pnpm publish - run: pnpm publish --access public --no-git-checks + run: pnpm publish --access restricted --publish-branch main --tag next env: - NPM_CONFIG_PROVENANCE: true - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..5ce545c --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +@metasig:registry=https://npm.pkg.github.com +//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} diff --git a/package.json b/package.json index 80bdae2..0b2fd32 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@impierce/tauri-plugin-keystore", + "name": "@metasig/tauri-plugin-keystore", "version": "2.1.0-alpha.1", "author": "daniel-mader", "description": "Interact with the device-native key storage (Android Keystore, iOS Keychain).", @@ -33,10 +33,6 @@ "license": "Apache-2.0", "repository": { "type": "git", - "url": "git+https://github.com/impierce/tauri-plugin-keystore.git" - }, - "bugs": { - "url": "https://github.com/impierce/tauri-plugin-keystore/issues" - }, - "homepage": "https://github.com/impierce/tauri-plugin-keystore#readme" + "url": "git+https://github.com/Metasig/tauri-plugin-keystore.git" + } }