Upgraded packages to latest
This commit is contained in:
parent
94f3caf2fc
commit
ab01098653
5 changed files with 9058 additions and 9173 deletions
83
.github/workflows/main.yml
vendored
83
.github/workflows/main.yml
vendored
|
@ -1,83 +0,0 @@
|
|||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build docker image
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Read .nvmrc
|
||||
run: echo "NODE_VERSION=$(awk -F. '{print $1}' .nvmrc)" >> $GITHUB_OUTPUT
|
||||
id: nvm
|
||||
|
||||
- name: Login to container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract Docker image metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
type=schedule
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=sha,prefix={{branch}}-,format=short
|
||||
type=sha,prefix=,format=short
|
||||
{{branch}}
|
||||
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
build-args: |
|
||||
NODE_VERSION=${{ steps.nvm.outputs.NODE_VERSION }}
|
||||
|
||||
release:
|
||||
name: Release
|
||||
needs: build
|
||||
if: github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Read .nvmrc
|
||||
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
||||
id: nvm
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
|
||||
|
||||
- name: Install
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT_SEMANTIC_RELEASE }}
|
||||
run: npx semantic-release
|
44
.github/workflows/release.yml
vendored
44
.github/workflows/release.yml
vendored
|
@ -1,44 +0,0 @@
|
|||
name: Release
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
env:
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
REGISTRY: ghcr.io
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Get version
|
||||
id: version
|
||||
uses: battila7/get-version-action@v2
|
||||
|
||||
- name: Add Semantic Version tag to Docker Image
|
||||
uses: shrink/actions-docker-registry-tag@v4
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
repository: ${{ env.IMAGE_NAME }}
|
||||
target: 'main'
|
||||
tags: |
|
||||
${{ steps.version.outputs.version-without-v }}
|
||||
${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}
|
||||
latest
|
|
@ -1,4 +1,9 @@
|
|||
# Mastodon to Bluesky
|
||||
This is forked from https://github.com/mauricerenck/mastodon-to-bluesky. So far I have only added the following:
|
||||
|
||||
- Upgraded packages due to issues with conversion to Bluesky.
|
||||
- Updated docker-compose to build the Docker image.
|
||||
|
||||
#### Crosspost from Mastodon to Bluesky
|
||||
|
||||
![GitHub release](https://img.shields.io/github/release/mauricerenck/mastodon-to-bluesky.svg?maxAge=1800) ![License](https://img.shields.io/github/license/mashape/apistatus.svg)
|
||||
|
@ -18,7 +23,7 @@ You can run the script directly using Node.js or you can use the Docker image.
|
|||
Clone this repository and install the dependencies:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/mauricerenck/mastodon-to-bluesky.git
|
||||
git clone https://code.alexhyett.com/alexhyett/mastodon-to-bluesky.git
|
||||
cd mastodon-to-bluesky
|
||||
npm install
|
||||
```
|
||||
|
|
18063
package-lock.json
generated
18063
package-lock.json
generated
File diff suppressed because it is too large
Load diff
34
package.json
34
package.json
|
@ -1,19 +1,19 @@
|
|||
{
|
||||
"name": "mastodon-to-bluesky",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Maurice Renck <hello@maurice-renck.de>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@atproto/api": "^0.12.2",
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"axios": "^1.6.8",
|
||||
"dotenv": "^16.4.5",
|
||||
"mastodon-api": "^1.3.0"
|
||||
}
|
||||
"name": "mastodon-to-bluesky",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Maurice Renck <hello@maurice-renck.de>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@atproto/api": "^0.13.15",
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"axios": "^1.7.7",
|
||||
"dotenv": "^16.4.5",
|
||||
"mastodon-api": "^1.3.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue