Skip to content

Commit

Permalink
Publishing setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cotyhamilton committed Feb 18, 2024
1 parent d36962d commit 0be32b4
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name: deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: check formatting
run: deno fmt --check

- name: lint
run: deno lint

# - name: test
# run: deno test
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on:
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name: deno
uses: denoland/setup-deno@v1

- name: publish
run: deno publish
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
deno.lock
coverage/
docs/
*.lcov
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"[json]": {
"editor.defaultFormatter": "denoland.vscode-deno"
}
}
8 changes: 6 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"name": "@cotyhamilton/lucia-adapter-denokv",
"version": "1.0.0-next.1",
"exports": "./mod.ts"
"version": "0.1.0",
"exports": "./mod.ts",
"exclude": [".github", ".vscode", "coverage", "docs"],
"tasks": {
"version": "deno run --allow-read=deno.json --allow-write=deno.json https://jsr.io/@cotyhamilton/deno-tools/0.1.2/bump.ts --out newVersion"
}
}

0 comments on commit 0be32b4

Please sign in to comment.