Skip to content

Commit

Permalink
fix: get auto publish working again
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Sep 15, 2023
1 parent 4c44d86 commit 21332d6
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 71 deletions.
57 changes: 29 additions & 28 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
name: Release
on:
push:
branches:
- main
push:
branches:
- main

permissions:
contents: read
contents: read

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
30 changes: 0 additions & 30 deletions .github/workflows/npm-publish.yml

This file was deleted.

16 changes: 6 additions & 10 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{
"branches": ["main"],
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false,
"tarballDir": "dist"
}
],
"@semantic-release/npm",
[
"@semantic-release/github",
{
"assets": "dist/*.tgz"
"assets": "dist/*.tgz"
}
]
]
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@2anki/csv-to-apkg",
"version": "1.1.6",
"version": "1.4.0",
"description": "convert CSV files to Anki flashcards (APKG)",
"main": "dist/csv-to-apkg.js",
"scripts": {
Expand Down

0 comments on commit 21332d6

Please sign in to comment.