Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
ci: npm package?
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-bertoncelli committed Jul 29, 2021
1 parent 8b9125d commit af5c2dc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish NPM package
on:
create:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: "12.x"
registry-url: "https://npm.pkg.github.com"
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions credentials.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://api.eu-de.language-translator.watson.cloud.ibm.com/instances/464a85a2-c87a-4cfe-b87c-631752964395
RbrdPspkMTsHZs_ezT0n3MJZ5gZK-ucmOsIb4fPzwdqJ
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "json-translator",
"version": "1.0.0",
"description": "Translate your JSON file with this tool!",
"main": "api.js",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit af5c2dc

Please sign in to comment.