Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .github/workflows/publish-dry-run.yaml

This file was deleted.

48 changes: 21 additions & 27 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@metasig:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -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).",
Expand Down Expand Up @@ -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"
}
}
Loading