Skip to content

Commit

Permalink
Merge pull request #9 from kieler/mka/release-workflow
Browse files Browse the repository at this point in the history
Automatic release workflow
  • Loading branch information
Drakae authored Dec 19, 2024
2 parents 360c359 + 2a0c9fb commit 60818b3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: release-table-webview

on:
workflow_dispatch:
inputs:
package:
description: 'Package to release'
required: true
options:
- table-webview

jobs:
build-and-publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ inputs.package }}

steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v4
with:
node-version: 16.x
- run: yarn
- run: yarn build
- name: Publish ${{ inputs.package }}
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ Collection of utilities used by various Kieler tools. The utilities are publishe
| package | version | Description |
---|---|---
| [table-webview](https://www.npmjs.com/package/@kieler/table-webview) | [![npm version](https://badge.fury.io/js/@kieler%2Ftable-webview.svg)](https://badge.fury.io/js/@kieler%2Ftable-webview) | Generic table view for use in VS Code extensions. |


## Releasing Packages
The repository houses multiple packages that can be individually released to npm.
To perform a release, make sure the version number in the `package.json` of the package-to-release has been updated to the new version.
The release can then be automatically performed using the `release-package` workflow.

0 comments on commit 60818b3

Please sign in to comment.