Skip to content

Commit

Permalink
Merge pull request #7 from aboutbits/upgrade-package
Browse files Browse the repository at this point in the history
Upgrade dev dependencies, clean up repository
  • Loading branch information
alexlanz authored Mar 25, 2024
2 parents 7e27fa3 + 45279a5 commit 754ced8
Show file tree
Hide file tree
Showing 7 changed files with 4,642 additions and 3,081 deletions.
37 changes: 14 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
name: Create Relase & Publish Package
name: Test Package

on:
push:
tags:
- 'v*'
on: push

env:
NODE_VERSION: 20
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
test:
runs-on: ubuntu-22.04
timeout-minutes: 5
timeout-minutes: 15
strategy:
matrix:
node_version: [16, 18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: '${{ github.ref }}',
name: 'Release ${{ github.ref_name }}'
})
- uses: aboutbits/github-actions-node/setup-and-install@v2
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
node-version: ${{ matrix.node_version }}
- run: npm run lint
- run: npm run typecheck
- run: npm run test
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Create Relase & Publish Package

on:
push:
tags:
- 'v*'

env:
NODE_VERSION: 20

jobs:
build:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: '${{ github.ref }}',
name: 'Release ${{ github.ref_name }}'
})
- uses: aboutbits/github-actions-node/setup-and-install@v2
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18 changes: 0 additions & 18 deletions .github/workflows/test.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@

# Project
/node_modules
/dist
/translations-template.json

# ESLint
# Build
/dist
*.tsbuildinfo

# Cache
.eslintcache
Loading

0 comments on commit 754ced8

Please sign in to comment.