Skip to content

Commit

Permalink
integrate github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sinansonmez committed Nov 1, 2023
1 parent 8d30a1c commit f00665d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .github/workflow/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: npm ci && npm run build
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easy-emojis",
"version": "1.0.1",
"version": "1.0.2",
"description": "A simple library to create emojis (flag or letter)",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit f00665d

Please sign in to comment.