Skip to content

Commit b832d44

Browse files
authored
Merge pull request #3 from manthanank/new-changes
New changes
2 parents 1781d22 + 9204692 commit b832d44

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

.github/workflows/publish.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: NPM Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
- run: npm ci
16+
17+
publish-npm:
18+
needs: build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: 16
25+
registry-url: https://registry.npmjs.org/
26+
- run: npm ci
27+
- run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

.github/workflows/releases.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
with:
1818
github-token: ${{ secrets.PA_TOKEN }}
1919
version-file: './releases.json'
20+
# version-file: './package.json,./package-lock.json'
2021

2122
- name: create release
2223
uses: actions/create-release@v1

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
- [ES6 Featues](#es6-features)
8585
- [ES5 Features](#es5-features)
8686
- [Examples](#examples)
87+
- [Snippets](#snippets)
88+
- [Short Hands](#short-hands)
8789
- [List of GitHub Repositories to learn JavaScript](#list-of-github-repositories-to-learn-javascript)
8890
- [List of Websites to learn JavaScript](#list-of-websites-to-learn-javascript)
8991
- [List of Books to learn JavaScript](#list-of-books-to-learn-javascript)
@@ -3880,6 +3882,18 @@ newObj();
38803882
// output: 10
38813883
```
38823884
3885+
## Snippets
3886+
3887+
```jsx
3888+
3889+
```
3890+
3891+
## Short Hands
3892+
3893+
```jsx
3894+
3895+
```
3896+
38833897
## List of GitHub Repositories to learn JavaScript
38843898
38853899
- [30 Days of JavaScript](https://github.com/Asabeneh/30-Days-Of-JavaScript)

0 commit comments

Comments
 (0)