Skip to content

Commit

Permalink
Add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricius committed Jan 14, 2024
1 parent 948d280 commit e753d56
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
push:
branches:
- master
pull_request:
workflow_dispatch:
pull_request:
workflow_dispatch:

jobs:
cypress-run:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish GitHub pages

on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Package to NPM

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
registry-url: 'https://registry.npmjs.org'

- id: get_version
uses: battila7/get-version-action@v2

- run: npm --no-git-tag-version version ${{ steps.get_version.outputs.version-without-v }}

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Publish the package with public visibility
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Continuous tests

on:
push:
pull_request:
workflow_dispatch:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

All notable changes to `vue-draggable-resizable` will be documented in this file

## 3.0.0 - ?
- Migrates to vue 3
## 3.0.0 - 2024-01-14
- Migrates to Vue 3
- Updates all packages
- Adds vitest instead of mocha and karma for testing
- Adds vite instead of webpack
- Adds Vitest instead of Mocha and Karma for testing
- Adds Vite instead of Webpack
- Adds Cypress to component-test the package in real browsers
- Fix `drag-stop` and `resize-stop` events
- And minor changes
Expand Down

0 comments on commit e753d56

Please sign in to comment.