Skip to content

Commit

Permalink
🏸🎿🗼🗿 Add action to publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathannsegal committed Jun 20, 2020
1 parent fa8f402 commit 41f2d43
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish package to github
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v1
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 }}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "@jonathansegal/emojifier",
"version": "2.0.0",
"name": "@jonathannsegal/emojifier",
"version": "2.1.0",
"description": "😃 Generates strings of emojis 🎉",
"license": "MIT",
"repository": "jonathannsegal/emojifier",
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
"main": "index.js",
"keywords": [
"emoji",
Expand Down

0 comments on commit 41f2d43

Please sign in to comment.