Skip to content

Commit

Permalink
Fixed many bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ozziest committed Dec 18, 2023
1 parent b647305 commit b6e4982
Show file tree
Hide file tree
Showing 35 changed files with 144 additions and 296 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tag and Push

on:
push:
branches:
- main

jobs:
tag-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

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

- name: Install jq
run: sudo apt-get install jq

- name: Get version from package.json
id: version
run: echo ::set-output name=version::$(jq -r .version package.json)

- name: Tag and push to GitHub
run: |
git config --local user.email "i.ozguradem@gmail.com"
git config --local user.name "Özgür Adem Işıklı"
git tag -a "v${{ steps.version.outputs.version }}" -m "Version ${{ steps.version.outputs.version }}"
git push origin "v${{ steps.version.outputs.version }}"
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: NPM Publish
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 20
- run: npm install
- run: npm test
- run: npm run build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Tests
name: Build and deploy

on:
push:
branches:
- main

- '*'
jobs:
units:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit b6e4982

Please sign in to comment.