From 4b147489d4feec08833538f902363d8b2f47fa55 Mon Sep 17 00:00:00 2001 From: Daniel Maddison Date: Wed, 7 Jul 2021 20:15:29 +1000 Subject: [PATCH] fix: Updated implementation detail (#15) * Updated License * Renamed string.d.ts --> index.d.ts * Added package.json * Updated release config * Audited scripts --- .github/workflows/release.yml | 23 ++++++++++++----------- .releaserc | 4 +++- LICENSE | 2 +- package.json | 10 ++++------ types/{string.d.ts => index.d.ts} | 0 5 files changed, 20 insertions(+), 19 deletions(-) rename types/{string.d.ts => index.d.ts} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f082427..4faa03c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release npm package +name: Release on: push: @@ -10,23 +10,24 @@ jobs: name: Release runs-on: ubuntu-20.04 steps: - - name: Checkout main + - name: Checkout 'main' Branch uses: actions/checkout@v2 with: ref: main - - name: Install Node.JS - uses: actions/setup-node@v1 + - name: Install Node + uses: actions/setup-node@v2 with: - node-version: "12.19.0" + node-version: 'lts/fermium' - name: Install Yarn - run: npm install --global yarn@1.22.10 - - name: Setup CI - run: yarn ci - - name: Build + run: npm install --global yarn + - name: Install CI + run: rm -rf node_modules + run: yarn install --frozen-lockfile + - name: Run Build run: yarn build - - name: Test + - name: Run Tests run: yarn test - - name: Release + - name: Release NPM Package run: yarn run semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc b/.releaserc index 5d53135..e184096 100644 --- a/.releaserc +++ b/.releaserc @@ -1,5 +1,7 @@ { "branches": [ - {name: 'main'}, + { + name: 'main' + } ] } diff --git a/LICENSE b/LICENSE index 528c12c..e197762 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Daniel Maddison +Copyright (c) 2021 DanMad Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 327b4d1..018d251 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,15 @@ { "name": "on-the-case", "version": "0.0.0-development", - "repository": { - "type": "git", - "url": "https://github.com/DanMad/on-the-case.js.git" - }, + "description": "A module that extends JavaScript's String object with additional case-conversion support", + "homepage": "https://www.npmjs.com/package/on-the-case", + "bugs": "https://github.com/DanMad/on-the-case/issues", + "repository": "https://github.com/DanMad/on-the-case.git", "license": "MIT", "author": "DanMad", "main": "dist/index.js", "scripts": { "build": "rm -rf dist && webpack", - "ci": "rm -rf node_modules && yarn install --frozen-lockfile", - "prepare": "husky install", "sort-package": "sort-package-json", "test": "jest", "test:coverage": "jest --coverage --colors", diff --git a/types/string.d.ts b/types/index.d.ts similarity index 100% rename from types/string.d.ts rename to types/index.d.ts