Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pakkographic committed Aug 13, 2024
1 parent d975fe6 commit c4c7452
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/dev-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ jobs:
lint:
name: ESLint
uses: ./.github/workflows/lint.yml

testing:
name: Feature Testing
uses: ./.github/workflows/feature-testing.yml
secrets: inherit

publish:
runs-on: ubuntu-latest
needs: [lint, testing]
Expand All @@ -27,23 +29,31 @@ jobs:
uses: actions/checkout@v3

- name: Install Dependencies
run: npm i
run: npm install

- name: Set Version
run: |
git config user.email "<>"
git config user.email "your-email@example.com"
git config user.name "GitHub Actions"
npm --no-git-tag-version version patch
hash=$(git rev-parse --short dev)
hash=$(git rev-parse --short HEAD)
version=$(jq -r .version package.json)
v="$version-dev.$hash"
echo "Setting Version: $v"
contents=$(jq --arg version "$v" '.version = $version' package.json) && echo -E "${contents}" > package.json
- name: Print npm config
run: npm config list

- name: Update npm
run: npm install -g npm@latest

- name: Publish
run: npm publish --tag dev --provenance --access public --no-git-checks
run: npm publish --registry=https://registry.npmjs.org/ --tag dev --provenance --access public --no-git-checks --loglevel verbose
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Deprecate Old Versions
run: npx -y npm-deprecate
run: npx npm-deprecate
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
use-node-version=16.16.0
publish-branch=dev

0 comments on commit c4c7452

Please sign in to comment.