Skip to content

Commit

Permalink
move to @ILPT namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
teunmooij committed Nov 5, 2024
1 parent c09e744 commit b35e90a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 47 deletions.
49 changes: 4 additions & 45 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,7 @@ on:

jobs:
build_and_publish:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout 💼
uses: actions/checkout@v4

- name: Install Node.js 🧩
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Check for critical vulnerabilities 🔎
run: npm audit --audit-level critical --omit=dev

- name: Install dependencies 📦
run: npm ci

- name: Run tests 🧪
run: npm test

- name: Build 🏗️
run: npm run build

- name: Bump version 📈
id: version
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
NEW_VERSION=$(npm version ${{ inputs.version }} --message $'Update version to %s\n\nAutomated version bump by GitHub Action.')
git push --follow-tags --no-verify
echo "new-version=${NEW_VERSION}" >> $GITHUB_OUTPUT
if: inputs.version && inputs.version != 'none'

- name: Set up NPM 🔑
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"

- name: Publish 🚀
run: npm publish --access public

- name: Create release ⛩️
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.new-version }}
uses: infinitaslearning/workflow-publish-public-module/.github/workflows/publish-module.yaml@v1
with:
version: ${{ inputs.version }}
secrets: inherit
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### What's changed

- Initial release

---
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "systemic-ts-service-runner",
"version": "1.0.1",
"name": "@ilpt/systemic-ts-service-runner",
"version": "0.0.0",
"description": "Service runner for systemic-ts",
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand Down

0 comments on commit b35e90a

Please sign in to comment.