Skip to content

Commit

Permalink
fix: Updated implementation detail (#15)
Browse files Browse the repository at this point in the history
* Updated License

* Renamed string.d.ts --> index.d.ts

* Added package.json

* Updated release config

* Audited scripts
  • Loading branch information
DanMad authored Jul 7, 2021
1 parent be67540 commit 4b14748
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release npm package
name: Release

on:
push:
Expand All @@ -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 }}
Expand Down
4 changes: 3 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"branches": [
{name: 'main'},
{
name: 'main'
}
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
File renamed without changes.

0 comments on commit 4b14748

Please sign in to comment.