Skip to content

Commit

Permalink
ci: publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn committed Nov 25, 2024
1 parent b303513 commit 96b30e2
Show file tree
Hide file tree
Showing 12 changed files with 8,591 additions and 12,682 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Package to npm

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: "pnpm"
registry-url: 'https://registry.npmjs.org'
- run: pnpm install
- run: pnpm publish --provenance --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
node_modules

dist/
credentials.json

# Output
.output
.vercel
/.svelte-kit
/build
/dist
.wrangler

# OS
.DS_Store
Thumbs.db

# Log
*.log

# Env
.env
.env.*
Expand All @@ -23,5 +22,3 @@ Thumbs.db
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

credentials.json
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ npm install -D @mierune/sveltekit-firebase-auth-ssr
6. 適切な場所でサインインとサインアウトを実装する。例)TODO
7. 必要な場所でユーザ情報を利用する。
8. 必要な環境変数を、実行環境に忘れずに設定する。

Loading

0 comments on commit 96b30e2

Please sign in to comment.