Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release main #14

Merged
merged 14 commits into from
Dec 14, 2023
72 changes: 42 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,60 @@ name: Release

on:
push:
branches: ['**']
branches: ["**"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout current branch
uses: actions/checkout@v4

- uses: actions/setup-node@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache: "npm"

- run: npm ci
- name: Install dependencies
run: npm install

- run: npm run build
- name: Build project
run: npm run build

- run: npm run test
- name: Test project
run: npm run test

# release:
# needs: build
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
# environment:
# name: production
# steps:
# - uses: actions/checkout@v3

# - uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'npm'
release:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
environment:
name: production
steps:
- name: Checkout current branch
uses: actions/checkout@v4

# - run: npm ci
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

# - run: npm run build
- name: Install dependencies
run: npm install

# - uses: cycjimmy/semantic-release-action@v3
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# with:
# extra_plugins: |
# @semantic-release/changelog
# @semantic-release/git
- name: Publish project
uses: cycjimmy/semantic-release-action@v4
id: semantic
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
branches: |
[
"main"
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## [1.0.1](https://github.com/Nosto/nosto-autocomplete/compare/v1.0.0...v1.0.1) (2023-12-14)


### Bug Fixes

* release ([57637ca](https://github.com/Nosto/nosto-autocomplete/commit/57637ca8b5c1b40f1212019c2b70c17f4df067ae))

# 1.0.0 (2023-12-13)


### Features

* add tests for history element ([9c4a19b](https://github.com/Nosto/nosto-autocomplete/commit/9c4a19be162e43837ef368fee404764abcb031ad))
* fix ([49af580](https://github.com/Nosto/nosto-autocomplete/commit/49af58056d97e3ca8bdd6feed7cf90c596aabb22))
* fix branches ([3b3bca6](https://github.com/Nosto/nosto-autocomplete/commit/3b3bca62016ffebe0317423f7a5c06bddf665fbf))
* publish config fix ([7256430](https://github.com/Nosto/nosto-autocomplete/commit/72564306b773c7d89e3642167619b025465fb423))
* release ([125fc7c](https://github.com/Nosto/nosto-autocomplete/commit/125fc7c7be59ce19065ec1128d662945fb802428))
* test ([57884e4](https://github.com/Nosto/nosto-autocomplete/commit/57884e4f73b851d0013f0f6258bb99fe7200f80f))
* try release npm with semantic-release ([b2a9d9e](https://github.com/Nosto/nosto-autocomplete/commit/b2a9d9eb64bcf579c6336034eb96f84e84dcce78))

# 1.0.0 (2023-12-13)


### Features

* add tests for history element ([9c4a19b](https://github.com/Nosto/nosto-autocomplete/commit/9c4a19be162e43837ef368fee404764abcb031ad))
* fix ([49af580](https://github.com/Nosto/nosto-autocomplete/commit/49af58056d97e3ca8bdd6feed7cf90c596aabb22))
* fix branches ([3b3bca6](https://github.com/Nosto/nosto-autocomplete/commit/3b3bca62016ffebe0317423f7a5c06bddf665fbf))
* release ([125fc7c](https://github.com/Nosto/nosto-autocomplete/commit/125fc7c7be59ce19065ec1128d662945fb802428))
* test ([57884e4](https://github.com/Nosto/nosto-autocomplete/commit/57884e4f73b851d0013f0f6258bb99fe7200f80f))
* try release npm with semantic-release ([b2a9d9e](https://github.com/Nosto/nosto-autocomplete/commit/b2a9d9eb64bcf579c6336034eb96f84e84dcce78))

# 1.0.0 (2023-12-13)


### Features

* add tests for history element ([9c4a19b](https://github.com/Nosto/nosto-autocomplete/commit/9c4a19be162e43837ef368fee404764abcb031ad))
* fix ([49af580](https://github.com/Nosto/nosto-autocomplete/commit/49af58056d97e3ca8bdd6feed7cf90c596aabb22))
* fix branches ([3b3bca6](https://github.com/Nosto/nosto-autocomplete/commit/3b3bca62016ffebe0317423f7a5c06bddf665fbf))
* test ([57884e4](https://github.com/Nosto/nosto-autocomplete/commit/57884e4f73b851d0013f0f6258bb99fe7200f80f))
* try release npm with semantic-release ([b2a9d9e](https://github.com/Nosto/nosto-autocomplete/commit/b2a9d9eb64bcf579c6336034eb96f84e84dcce78))
4 changes: 2 additions & 2 deletions package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nosto/nosto-autocomplete",
"version": "1.0.0",
"version": "1.0.1",
"description": "Library designed to simplify the implementation of search autocomplete functionality",
"keywords": [
"nosto"
Expand Down Expand Up @@ -182,5 +182,9 @@
}
}
}
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}