Skip to content

Commit

Permalink
Cannot publish via GoReleaser, using manual cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Sep 28, 2021
1 parent 23000f6 commit de1ae60
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
registry-url: https://registry.npmjs.org/
- name: Install all deps
run: npm ci
- name: Publish to NPM
run: make publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.7.0
with:
Expand All @@ -37,4 +41,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ build:
# ---------------------------
# Publishers
# ---------------------------
publishers:
- name: npm
cmd: make publish
dir: "."
# publishers:
# - name: npm
# cmd: make publish
# dir: "."

# ---------------------------
# Github Release
Expand Down
2 changes: 1 addition & 1 deletion lib/api-client.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const axios = require('axios'); // .default (@mrz what does this affect?)

// Current version for requests from the API
export const pkgVersion = 'v0.2.4';
export const pkgVersion = 'v0.2.5';
export const apiVersion = 'v1';

// getOptions is a factory for axios default options
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": "tonicpow-js",
"version": "0.2.4",
"version": "0.2.5",
"description": "TonicPow API Library in JS - https://docs.tonicpow.com",
"main": "dist/api.js",
"module": "./module/api.js",
Expand Down

0 comments on commit de1ae60

Please sign in to comment.