Skip to content

Commit

Permalink
feat: switch to github and npmjs
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Jan 3, 2024
1 parent 52061e7 commit add6b92
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 89 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: publish

on:
push:
tags:
- v*

permissions:
contents: read

jobs:
publish-npm:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
registry-url: https://registry.npmjs.org/
- run: pnpm install
- run: pnpm version ${GITHUB_REF_NAME#v}
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- uses: ncipollo/[email protected]
with:
generateReleaseNotes: true
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test

on:
push:
merge_group:
pull_request:
branches:
- main

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: corepack enable

- uses: actions/setup-node@v3
with:
node-version-file: .node-version

- run: pnpm install

- run: pnpm lint:prettier
- run: pnpm pack
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.10.0
4 changes: 0 additions & 4 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ git-checks = false
# pnpm run settings
# https://pnpm.io/cli/run
shell-emulator = true

@visualon:registry = https://forgejo.visualon.de/api/packages/vt/npm/

//forgejo.visualon.de/:always-auth = true
83 changes: 0 additions & 83 deletions Jenkinsfile

This file was deleted.

4 changes: 2 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["vo/renovate-config", "vo/renovate-config:automergePatch"],
"reviewers": ["kriese", "reitz"]
"extends": ["visualon/renovate-config"],
"reviewers": ["viceice"]
}

0 comments on commit add6b92

Please sign in to comment.