Skip to content

Commit

Permalink
Revert changes to branch protections
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Oct 3, 2024
1 parent a062cb2 commit ddd7cfb
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
# yamllint disable rule:line-length
name: "Publish to NPM"
on: # yamllint disable-line rule:truthy
#release:
#types:
#- "published"
# NOTE: this is temporary until I get the release process ironed out.
pull_request:
branches:
- "*"
release:
types:
- "published"

jobs:
publish:
Expand All @@ -20,7 +16,6 @@ jobs:
with:
node-version: 18
- uses: bahmutov/npm-install@v1
- run: yarn test
# Set the version in package.json to match the tag
- name: Write release version
run: |
Expand All @@ -29,7 +24,7 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
# NOTE: the flag is necessary because otherwise `npm version <version>` attempts to
# cut a git tag with that version, which fails because the git user isn't configured.
- run: "npm version 1.0.2 --no-git-tag-version"
- run: "npm version ${VERSION} --no-git-tag-version"
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -60,7 +55,7 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
# NOTE: the flag is necessary because otherwise `npm version <version>` attempts to
# cut a git tag with that version, which fails because the git user isn't configured.
- run: "npm version 1.0.2 --no-git-tag-version"
- run: "npm version ${VERSION} --no-git-tag-version"
working-directory: ./js-dist
- uses: JS-DevTools/npm-publish@v3
with:
Expand Down

0 comments on commit ddd7cfb

Please sign in to comment.