Skip to content

Commit

Permalink
Merge pull request #7 from natahouse/develop
Browse files Browse the repository at this point in the history
chore(release): v1.1.0
  • Loading branch information
Minozzzi authored Mar 20, 2024
2 parents ef4bee8 + 2e0576f commit 04ca782
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 32 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/create-release.yml

This file was deleted.

41 changes: 36 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,50 @@
name: Publish Configurations on Release

on:
release:
types:
- "released"
push:
branches:
- main

permissions:
contents: write

jobs:
release:
name: Publish to NPM
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: npm install

- uses: actions/cache@v3
name: Setup npm cache
with:
path: ~/.npm
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--notes-file CHANGELOG.md
- name: Login to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file. See [standa
* add publish workflow ([0e16207](https://github.com/natahouse/nata-lint/commit/0e16207e9564a8c4ec1cb5770348c18d3d194a9f))
* add publish workflow ([9fa76bc](https://github.com/natahouse/nata-lint/commit/9fa76bc961d6b47e439a76b1cd754f85a2422300))
* add versionrc ([7b4c5d8](https://github.com/natahouse/nata-lint/commit/7b4c5d867c516f38a10dea4752b67ab2746fcdf9))
* unify publish workflow ([8ec1e01](https://github.com/natahouse/nata-lint/commit/8ec1e0117d8ffa125a9f51596fc62306a0a3fec4))


### Bug Fixes
Expand Down

0 comments on commit 04ca782

Please sign in to comment.