Skip to content

Commit

Permalink
fix: fix deployment pipeline not linting before the deployment is bei…
Browse files Browse the repository at this point in the history
…ng done
  • Loading branch information
nihey committed Jan 10, 2024
1 parent 59f3994 commit 211e94a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run eslint

- name: Run build
run: npm run build

deploy:
if: success()
runs-on: ubuntu-latest
Expand All @@ -35,6 +15,7 @@ jobs:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run eslint
- run: npm run build
- run: npm publish --access public
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@videomatik/editor",
"version": "0.1.0",
"version": "0.1.1",
"description": "Videomatik Editor as an Embeddable component",
"main": "dist/editor.js",
"scripts": {
Expand Down

0 comments on commit 211e94a

Please sign in to comment.