Skip to content

Commit

Permalink
automatization of publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mefistosss committed Mar 29, 2022
1 parent 97e8421 commit c3a0428
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package
name: Publish

on:
release:
Expand Down Expand Up @@ -30,4 +30,4 @@ jobs:
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -27,6 +27,4 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
# - run: npm run build --if-present
# - run: npm install
- run: npm test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Vue.js Sirv Media Viewer

[![Test](https://github.com/Mefistosss/vue-js-sirv-viewer/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/Mefistosss/vue-js-sirv-viewer/actions/workflows/test.yml)

Easy to use, highly customizable Vue.js Sirv Media Viewer library.

Copy and paste this script anywhere in your HTML, usually before ```</head>```
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "demo",
"version": "1.0.0-beta2",
"version": "1.0.0",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const config = {
bail: true,
verbose: true,
preset: '@vue/cli-plugin-unit-jest',
transform: {
"^.+\\.vue$": "@vue/vue3-jest"
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": "vue-js-sirv-viewer",
"version": "1.0.0-beta2",
"version": "1.0.0-beta.3",
"description": "Sirv Media Viewer for Vue.js",
"author": "sergey <sergeypo@protonmail.com>",
"scripts": {
Expand Down

0 comments on commit c3a0428

Please sign in to comment.