Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
Split npm-publish.yml -> pkg-npm.yml & pkg-github.yml

Signed-off-by: Aissaoui Ahmed <[email protected]>
  • Loading branch information
Aissaoui-Ahmed committed Jul 16, 2020
1 parent 9daa7bc commit 11a07f8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 46 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/npm-publish.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/pkg-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Node.js Package on github registry.

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com
scope: '@aissaoui-ahmed'
- run: npm config set '//npm.pkg.github.com/:_authToken' "${NODE_AUTH_TOKEN}" && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
19 changes: 19 additions & 0 deletions .github/workflows/pkg-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Node.js Package on npm registry.

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org
scope: '@aissaoui-ahmed'
- run: npm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@aissaoui-ahmed/accents",
"version": "1.0.2-alpha",
"version": "1.0.3-alpha",
"description": "check and Remove accents!",
"type": "module",
"bin": {
"accent": "./bin/accents.js"
},
"main": "index.js",
"scripts": {
"lint": "eslint ."
Expand Down

0 comments on commit 11a07f8

Please sign in to comment.