Skip to content

Commit

Permalink
feat: added workflow to publish to npm
Browse files Browse the repository at this point in the history
feat: v0.3.4

fix: removed plugin branch from docs workflow

fix: run pnpm install first

refactor: rename publish job to publish

fix: add --no-git-checks
  • Loading branch information
harshkhandeparkar committed Jul 23, 2023
1 parent 47dc2df commit 7cd4364
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- plugin

jobs:
gen_docs:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to NPM
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm install
pnpm run npm-publish
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tauri-settings",
"version": "0.3.3",
"version": "0.3.4",
"description": "A user settings manager for Tauri inspired by electron-settings.",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand All @@ -9,7 +9,7 @@
"test": "jest --config config/jest.config.js",
"dev": "tsc -w",
"doc": "typedoc --options config/typedoc.js",
"npm-publish": "pnpm run test && pnpm run build && pnpm publish"
"npm-publish": "pnpm run test && pnpm run build && pnpm publish --no-git-checks"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 7cd4364

Please sign in to comment.