Skip to content

Commit

Permalink
Merge pull request #6 from studiobakers/fix/add-yml
Browse files Browse the repository at this point in the history
Add npm publish automation yaml
  • Loading branch information
tatata96 authored Feb 21, 2024
2 parents 43b9cb5 + bf25e1d commit aee98a6
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 9 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "New Version Actions"

on:
push:
branches: # only trigger when a commit was pushed to main
- main

permissions:
contents: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.0.0

- id: publish-to-npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }} # This token should be added from repo settings

- id: create-gh-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.publish-to-npm.outputs.version }}
release_name: ${{ steps.publish-to-npm.outputs.version }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build/Release
# Dependency directories
node_modules
jspm_packages
package-lock.json

# Optional npm cache directory
.npm
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @hipo/eslint-config-typescript

Hipo's shareable ESLint configurations for TypeScript.
Bakers' shareable ESLint configurations for TypeScript.

## Installation

Expand Down
18 changes: 16 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "@hipo/eslint-config-typescript",
"version": "1.2.0",
"description": "Hipo's shareable ESLint configurations for TypeScript",
"version": "1.2.1",
"description": "Bakers' shareable ESLint configurations for TypeScript",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Hipo/eslint-config-hipo-typescript.git"
"url": "git+https://github.com/studiobakers/eslint-config-typescript"
},
"keywords": [
"eslintconfig",
"eslint",
"typescript",
"hipo"
],
"author": "Hipo Web Team",
"author": "Bakers Web Team",
"license": "UNLICENSED",
"bugs": {
"url": "https://github.com/Hipo/eslint-config-hipo-typescript/issues"
"url": "https://github.com/studiobakers/eslint-config-typescript/issues"
},
"homepage": "https://github.com/Hipo/eslint-config-hipo-typescript#readme",
"homepage": "https://github.com/studiobakers/eslint-config-typescript/blob/main/README.md",
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
Expand Down

0 comments on commit aee98a6

Please sign in to comment.