Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ-7885 authored Jul 12, 2021
1 parent eb0ff2b commit 6222000
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publishing packages to npm and GitHub Packages
on:
push:
branches: publish
# push:
# branches: publish
release:
types: # This configuration does not affect the page_build event above
- created
Expand All @@ -25,34 +25,28 @@ jobs:
registry-url: "https://registry.npmjs.org"
- run: npm install


# - name: Commit files
# run: |
# git config --local user.email "42003122+code7885@users.noreply.github.com"
# git config --local user.name "AJ"
# git commit -m "Add changes" -a
- name: Bump up the patch version 🕹️ -
run: npm version patch -m " %$ " -f
run: npm version patch -m " %s " -f

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main

# - run: git checkout main & git push
# # Publish to npm
# - run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# # Setup .npmrc file to publish to GitHub Packages
# - uses: actions/setup-node@v2
# with:
# registry-url: "https://npm.pkg.github.com"
# # Defaults to the user or organization that owns the workflow file
# scope: "@aj-7885"
# # Publish to GitHub Packages
# - run: echo "`jq '.name="@aj-7885/eslint-config-webchannel"' package.json`" > package.json
# - run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: git checkout main & git push
# Publish to npm
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v2
with:
registry-url: "https://npm.pkg.github.com"
# Defaults to the user or organization that owns the workflow file
scope: "@aj-7885"
# Publish to GitHub Packages
- run: echo "`jq '.name="@aj-7885/eslint-config-webchannel"' package.json`" > package.json
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6222000

Please sign in to comment.