Skip to content

Commit

Permalink
Switch pkg template variable name to new package name
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed May 16, 2024
1 parent 23be3ae commit 630594e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-on-vtag.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: release
name: Create Release

on:
push:
tags:
- 'v*'

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/create-release@v1
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/create-release@v1 #see: https://github.com/actions/create-release/releases
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/run-spec-on-push.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: build
name: Build and Run Specifications

on: [push]

jobs:
build:
name: Run Specifications
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/setup-node@v4 #see: https://github.com/actions/setup-node/releases
with:
node-version: 18
- run: npm install
- run: npm test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _A wrapper around Fetch just for JSON_
[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/center-key/fetch-json/blob/main/LICENSE.txt)
[![npm](https://img.shields.io/npm/v/fetch-json.svg)](https://www.npmjs.com/package/fetch-json)
[![Size](https://badgen.net/bundlephobia/minzip/fetch-json)](https://bundlephobia.com/package/fetch-json)
[![Build](https://github.com/center-key/fetch-json/workflows/build/badge.svg)](https://github.com/center-key/fetch-json/actions/workflows/run-spec-on-push.yaml)
[![Build](https://github.com/center-key/fetch-json/actions/workflows/run-spec-on-push.yaml/badge.svg)](https://github.com/center-key/fetch-json/actions/workflows/run-spec-on-push.yaml)

Why would you fetch anything but json? ;)

Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<link rel=icon href=https://centerkey.com/graphics/bookmark.png>
<link rel=apple-touch-icon href=logos.png>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/reset.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/[email protected]/dist/layouts/letterbox.css>
<style>
Expand All @@ -41,7 +41,7 @@
main >section figure code.language-js { color: deeppink; font-size: 1.1rem; }
main >section figure code.language-js .js-param { color: darkmagenta; }
</style>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.1/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.2/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/lib-x.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/[email protected]/dist/fetch-json.min.js></script>
<script data-on-load=setup data-wait-for=fetchJson>
Expand Down
2 changes: 1 addition & 1 deletion fetch-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type FetchJsonLogger = (
) => void;

const fetchJson = {
version: '{{pkg.version}}',
version: '{{package.version}}',
baseOptions: <FetchJsonOptions>{},
getBaseOptions(): FetchJsonOptions {
return this.baseOptions;
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,28 +95,28 @@
},
"devDependencies": {
"@fortawesome/fontawesome-free": "~6.5",
"@types/node": "~20.11",
"@typescript-eslint/eslint-plugin": "~7.3",
"@typescript-eslint/parser": "~7.3",
"@types/node": "~20.12",
"@typescript-eslint/eslint-plugin": "~7.9",
"@typescript-eslint/parser": "~7.9",
"add-dist-header": "~1.4",
"assert-deep-strict-equal": "~1.2",
"copy-file-util": "~1.2",
"copy-folder-util": "~1.1",
"dna-engine": "~3.1",
"eslint": "~8.57",
"dna-engine": "~3.2",
"eslint": "8.57.0",
"esm-to-plain-js": "~1.1",
"http-server": "~14.1",
"jsdom": "~24.0",
"jshint": "~2.13",
"mocha": "~10.3",
"puppeteer": "~22.6",
"mocha": "~10.4",
"puppeteer": "~22.8",
"puppeteer-browser-ready": "~1.3",
"replacer-util": "~1.2",
"replacer-util": "~1.3",
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"typescript": "~5.4",
"uglify-js": "~3.17",
"w3c-html-validator": "~1.7",
"w3c-html-validator": "~1.8",
"web-ignition": "~2.1",
"whatwg-fetch": "~3.6"
}
Expand Down

0 comments on commit 630594e

Please sign in to comment.