Skip to content

Commit 0e2013a

Browse files
authored
Merge pull request #78 from AddSearch/release-0.9.0
Prepare release 0.9.0
2 parents a047de5 + 9a86d35 commit 0e2013a

File tree

4 files changed

+42
-6
lines changed

4 files changed

+42
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish GitHub package
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
registry-url: 'https://registry.npmjs.org'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Set version to release tag
28+
shell: bash
29+
id: define_tag
30+
run: |
31+
PACKAGE_VERSION=$(git describe --abbrev=0 --tags | sed 's/^v//')
32+
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
33+
34+
- name: Build
35+
run: npm run build
36+
37+
- name: Publish
38+
run: npm publish
39+
env:
40+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
node_modules
3+
dist

dist/addsearch-js-client.min.js

-5
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "addsearch-js-client",
3-
"version": "0.8.16",
3+
"version": "0.9.0",
44
"description": "AddSearch API JavaScript client",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)