Skip to content

Commit a3c5031

Browse files
authored
Merge pull request #67 from Staffbase/chore-update-workflow
chore: update publish workflow
2 parents 55aa0ed + c4e569f commit a3c5031

File tree

5 files changed

+2834
-4036
lines changed

5 files changed

+2834
-4036
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"presets": [
33
["@babel/preset-env", {
44
"targets": {
5-
"node": "14"
5+
"node": "20"
66
}
77
}]
88
]

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": ["plugin:node/recommended", "@staffbase/eslint-config-staffbase"],
2+
"extends": ["plugin:node/recommended"]
33
}

.github/workflows/publish-npm.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9+
910
- name: Checkout
1011
uses: actions/checkout@v4
12+
1113
- name: Setup Node
1214
uses: actions/setup-node@v4
1315
with:
1416
registry-url: 'https://registry.npmjs.org'
15-
- name: Publish package on NPM 📦
17+
18+
- name: Install dependencies
19+
run: npm install
20+
21+
- name: Create build
22+
run: npm run build
23+
24+
- name: Publish package on NPM 📦
1625
run: npm publish
1726
env:
1827
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)