Skip to content

Commit

Permalink
publish first version
Browse files Browse the repository at this point in the history
  • Loading branch information
negrel committed May 29, 2024
1 parent 207d35c commit 07eccdb
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
Binary file removed .github/images/bmc-button.png
Binary file not shown.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build

on:
push:
branches: ['*']
pull_request:

permissions: {}

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v21

- name: Extract Tag
id: extract_tag
uses: actions/github-script@v6
with:
script: |
const prefix = 'refs/tags/v';
const ref = context.ref;
return ref.startsWith(prefix) ? ref.substring(prefix.length) : '';
result-encoding: string

- name: Lint
run: nix develop --command make lint

- name: Check Format
run: nix develop --command make fmt-check

- name: Run Tests
run: nix develop --command make test

- name: Publish to JSR
run: nix develop --command deno publish
3 changes: 3 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"name": "@negrel/webpush",
"version": "0.1.0",
"exports": "./mod.ts",
"compilerOptions": {
"allowJs": false,
"strict": true
Expand Down

0 comments on commit 07eccdb

Please sign in to comment.