diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index 02713da..0000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Node.js CI - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 13.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: npm install, lint and test - run: | - npm install - npm run lint:fix - env: - CI: true - diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml deleted file mode 100644 index 1fd2995..0000000 --- a/.github/workflows/npmpublish.yml +++ /dev/null @@ -1,47 +0,0 @@ -# name: Publish to NPM - -# on: -# push: -# branches: -# - main - -# jobs: -# publish-npm: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - uses: actions/setup-node@v1 -# with: -# node-version: 12 -# registry-url: https://registry.npmjs.org/ -# - run: | -# npm install -# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc -# npm run dist -# npm publish -# env: -# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - - -name: Publish to NPM -on: - release: - types: [created] -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: '16' - registry-url: 'https://registry.npmjs.org' - - name: Publish package on NPM 📦 - - run: | - npm install - npm run prod - npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..bb06916 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish to NPM +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '16' + registry-url: 'https://registry.npmjs.org' + - name: Publish package on NPM 📦 + - run: | + npm install + npm run prod + npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 30981ce..11b0ac3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seerbit-vue", - "version": "3.1.0", + "version": "3.1.1", "description": "SeerBit VueJS Component for Vue 3.x.x", "private": true, "main": "dist/seerbit-vue3.mjs",