Skip to content

Commit

Permalink
build: 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wszgrcy committed Mar 23, 2024
1 parent 84fbb0b commit 45cbb40
Show file tree
Hide file tree
Showing 14 changed files with 5,334 additions and 50 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: publish
on:
push:
branches:
- "master"

jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: install-node
uses: actions/setup-node@v1
with:
node-version: 20.x
- uses: wszgrcy/code-recycle-action@main
with:
path: ./script/sync-localize.ts
cwd: ./src
- run: npm install
- run: npm test
- name: build
run: npm run build
- id: publish
name: publish
uses: JS-DevTools/[email protected]
with:
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
package: ./dist/package.json
- if: steps.publish.outputs.old-version != steps.publish.outputs.version
run: |
echo "[${{ steps.publish.outputs.type }}]Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
git tag v${{steps.publish.outputs.version}}
git push origin v${{steps.publish.outputs.version}}
21 changes: 0 additions & 21 deletions .github/workflows/update.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
lib
lib
/dist
Loading

0 comments on commit 45cbb40

Please sign in to comment.