Skip to content

Commit

Permalink
FIXUP
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Jul 26, 2023
1 parent 73e188b commit a948e57
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ jobs:
lib/**/*
publish:
# Run only for version tags
if: contains(github.ref, 'refs/tags/v')
needs:
- build
if: contains(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

Expand All @@ -66,3 +69,10 @@ jobs:
uses: actions/download-artifact@v3
with:
name: dist-files

- name: Publish
run: npm run release
env:
NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"scripts": {
"build": "babel src -d lib",
"lint": "eslint .",
"bump": "./scripts/version.sh".
"release": "./scripts/release.sh",
"pretest": "npm install webpack4@npm:webpack@4.42.1",
"test": "jest test",
"prepublishOnly": "npm run build"
Expand Down

0 comments on commit a948e57

Please sign in to comment.