Skip to content

Commit

Permalink
Merge pull request #78 from AddSearch/release-0.9.0
Browse files Browse the repository at this point in the history
Prepare release 0.9.0
  • Loading branch information
janstoff authored Dec 17, 2024
2 parents a047de5 + 9a86d35 commit 0e2013a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish_github_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish GitHub package

on:
workflow_dispatch:
release:
types: [created]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Set version to release tag
shell: bash
id: define_tag
run: |
PACKAGE_VERSION=$(git describe --abbrev=0 --tags | sed 's/^v//')
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
- name: Build
run: npm run build

- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
node_modules
dist
5 changes: 0 additions & 5 deletions dist/addsearch-js-client.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "addsearch-js-client",
"version": "0.8.16",
"version": "0.9.0",
"description": "AddSearch API JavaScript client",
"repository": {
"type": "git",
Expand Down

0 comments on commit 0e2013a

Please sign in to comment.