Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now project is auto publishing when creating a new tag #53

Merged
merged 11 commits into from
May 6, 2024
24 changes: 14 additions & 10 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: i18n-populator
name: Publish to npm

on:
release:
Expand All @@ -7,13 +7,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm test
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20

- run: npm ci
- run: npm test

publish-gpr:
needs: build
Expand All @@ -25,9 +27,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
node-version: 20
registry-url: 'https://registry.npmjs.org'
always-auth: true
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@victor-heliomar/i18n-populator",
"name": "i18n-populator",
"version": "1.0.44",
"description": "A small NodeJS tool that generates translations for i18n and put them on their appropriate files",
"main": "index.js",
Expand Down Expand Up @@ -34,7 +34,7 @@
"services/libreTranslate.js"
],
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"i18n",
Expand Down
Loading