Skip to content

Commit

Permalink
ci: add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
freaktechnik committed May 18, 2024
1 parent b983ae8 commit 9316a40
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: publish
on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: production
url: https://npmjs.com/package/transifex-loader
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
- run: npm ci --no-audit
- run: npm test
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./package.json
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@
"index.js",
"cli.js",
"treeify.js"
]
],
"publishConfig": {
"provenance": true
}
}

0 comments on commit 9316a40

Please sign in to comment.