Skip to content

Commit

Permalink
Deployed to NPM using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xprees committed Dec 14, 2024
1 parent 6c06d72 commit eaca557
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to NPM registry

on:
push:
branches:
- master
- release/*

jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
environment: Production
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Version Patcher
uses: justalemon/VersionPatcher@v0.8
with:
version: 1.0.${{ github.run_number }}
npm-files: 'package.json'
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
access: public
tag: ${{ github.ref_name }}
ignore-scripts: true

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"com.dbrizov.naughtyattributes": "2.1.4",
"cz.xprees.core": "1.0.31",
"cz.xprees.variables": "1.0.7",
"cz.xprees.events": "1.0.6",
"cz.xprees.events": "1.0.7",
"cz.xprees.editor-tools": "1.0.8"
},
"keywords": [
Expand Down

0 comments on commit eaca557

Please sign in to comment.